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
9a640cfe
Commit
9a640cfe
authored
Nov 21, 2018
by
mrodzis
🌿
Browse files
Improve whitespace handling
parent
1c787e51
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
9a640cfe
...
...
@@ -317,6 +317,14 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
if($node/@type = "highlighted"
and simpleHelpers:is-hand-contemporary($node/@hand)) then
$node
else if($node/following::node()[1][self::text()]) then
let $first-char := $node/following::node()[1][self::text()]
=> substring(1, 1)
return
if(matches($first-char, "[\s]")) then
(fontaneSimple:transform($node/node(), $uri), text{" "})
else
fontaneSimple:transform($node/node(), $uri)
else
fontaneSimple:transform($node/node(), $uri)
...
...
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