Commit cdc8b8a1 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

improved pattern in preText and postText - affects many tooltips

parent 5848e269
......@@ -858,7 +858,7 @@ let $prvLineText := if($n/preceding::text()[ancestor::tei:line = $n/ancestor::te
else ()
let $prvLineText := if(
(string-join($prvLineText)="")
and ( not(matches(string-join($n/preceding::text()[ancestor::tei:line = $n/ancestor::tei:line]), '\s')))
and ( not(matches(string-join($n/preceding::text()[ancestor::tei:line = $n/ancestor::tei:line]), '\s$')))
and (
ends-with($n/ancestor::tei:line/preceding::tei:line[1], '-')
or ends-with($n/ancestor::tei:line/preceding::tei:line[1], '⸗')
......@@ -872,7 +872,7 @@ return
declare function fontaneTransfo:postText($n) {
(: former mod hover::)
let $text := if(matches($n/following::text()[1][ancestor::tei:line = $n/ancestor::tei:line], '\s'))
let $text := if(matches($n/following::text()[1][ancestor::tei:line = $n/ancestor::tei:line], '^\s'))
then ()
else
if( matches(string-join($n/following::text()[ancestor::tei:line = $n/ancestor::tei:line]), '\s' ))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment