Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
4753d4f5
Commit
4753d4f5
authored
Dec 12, 2018
by
mrodzis
🌿
Browse files
Improve whitespace handling (cf. print#44)
parent
519e4d6f
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tidysimple.xqm
View file @
4753d4f5
...
...
@@ -328,10 +328,13 @@ declare function tidySimple:whitespaces($nodes as node()*) as node()* {
let $target-id := replace($node/@next, "#", "")
let $target := $node/ancestor::tei:text//*[@xml:id = $target-id]
return
if(not(ends-with($node//text()[last()], "@P"))) then
attribute break {"true"}
else
if(ends-with($node//text()[last()], "@P")
(: example: C6 Kapell:drf. :)
or $node[self::tei:abbr][ends-with(., ":")]
or $node[self::tei:rs]/tei:choice[not(following-sibling::*)][tei:abbr[ends-with(., ":")]]) then
()
else
attribute break {"true"}
else
(),
tidySimple:whitespaces($node/node())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment