diff --git a/modules/intermediate_format/preprocessing.xqm b/modules/intermediate_format/preprocessing.xqm index 1c7d9fe8044c86e27524a94f48dc554579089a4b..a6f289557aeada0224fe452927c9f588c538ba66 100644 --- a/modules/intermediate_format/preprocessing.xqm +++ b/modules/intermediate_format/preprocessing.xqm @@ -206,9 +206,9 @@ declare function pre:preprocessing ( $following-sibling[self::text() and not(normalize-space(.) = '')] and starts-with($following-sibling, " ") = true() ) ) then ( attribute {"clear"}{"left"} ) :) - else if ( $following-sibling[self::docAuthor or self::app or self::index or self::seg or self::bibl] ) then ( + (:else if ( $following-sibling[self::docAuthor or self::app or self::index or self::seg or self::bibl] ) then ( attribute {"break"}{"yes"} - ) + ):) else if ( ( $preceding-sibling[matches(., "[\s\n\r\t]") and normalize-space(.) = ""] )