From d8b64311b62d52ac7606a8b91b62de8366dc56ed Mon Sep 17 00:00:00 2001 From: uwe <arokis.u@gmail.com> Date: Thu, 8 Feb 2018 18:51:41 +0100 Subject: [PATCH] tei:pb in its own line (preceded and followed by whitespace text()) flaged with @break='yes' --- modules/intermediate_format/preprocessing.xqm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/intermediate_format/preprocessing.xqm b/modules/intermediate_format/preprocessing.xqm index 3bfa7cf..f9ddaf0 100644 --- a/modules/intermediate_format/preprocessing.xqm +++ b/modules/intermediate_format/preprocessing.xqm @@ -211,9 +211,9 @@ declare function pre:preprocessing ) else if ( - ( $preceding-sibling[self::text() and normalize-space(.) = ''] ) + ( $preceding-sibling[self::text()][matches(., "[\s\n\r\t]") and normalize-space(.) = ""] ) and - ( $following-sibling[self::text() and normalize-space(.) = ''] ) + ( $following-sibling[self::text()][matches(., "[\s\n\r\t]") and normalize-space(.) = ""] ) ) then ( attribute {"break"}{"yes"} ) -- GitLab