Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
688cfd9b
Commit
688cfd9b
authored
Aug 16, 2019
by
mrodzis
💪
Browse files
Consider elements when tidying HTML version of ET
parent
43d20988
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/edited-text/simple2xhtml.xqm
View file @
688cfd9b
...
...
@@ -20,7 +20,7 @@ declare function simple2xhtml:main($nodes as node()*, $uri as xs:string) {
let $tidy := element xhtml:div {simple2xhtml:tidy($xhtml)}
let $store := xmldb:store($config:data-root || "/print/xhtml/", $uri || ".html", $tidy)
return
$
xhtml
$
tidy
};
(:~
...
...
@@ -679,5 +679,8 @@ declare function simple2xhtml:tidy($nodes as node()*) as node()* {
=> replace(" :", ":") }
default return
simple2xhtml:tidy($node/node())
element {QName("http://www.w3.org/1999/xhtml", $node/name())} {
$node/@*,
simple2xhtml:tidy($node/node())
}
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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