From 7df36dc69c1f3badfe74c55524c55067f5d01390 Mon Sep 17 00:00:00 2001
From: MRodz <MRodz@users.noreply.github.com>
Date: Fri, 9 Feb 2018 10:08:55 +0100
Subject: [PATCH] Predicate [self::text()] causes trouble.

---
 modules/intermediate_format/preprocessing.xqm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/intermediate_format/preprocessing.xqm b/modules/intermediate_format/preprocessing.xqm
index f9ddaf0..1c7d9fe 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()][matches(., "[\s\n\r\t]") and normalize-space(.) = ""] )
+                            ( $preceding-sibling[matches(., "[\s\n\r\t]") and normalize-space(.) = ""] )
                             and
-                            ( $following-sibling[self::text()][matches(., "[\s\n\r\t]") and normalize-space(.) = ""] )
+                            ( $following-sibling[matches(., "[\s\n\r\t]") and normalize-space(.) = ""] )
                         ) then (
                             attribute {"break"}{"yes"}
                         )
@@ -261,4 +261,4 @@ declare function pre:preprocessing
             default return ( 
                 pre:default-element( $node, pre:preprocessing($node/node()) )
             )
-};
\ No newline at end of file
+};
-- 
GitLab