diff --git a/content/template.js b/content/template.js index e6b42d99..f1ce0707 100644 --- a/content/template.js +++ b/content/template.js @@ -112,12 +112,12 @@ const template = { if (str == "") return <>{str}>; - XML.ignoreWhitespace = false; str = String(str).replace(" ", "\u00a0"); let s = <>>; let start = 0; for (let [i, length] in iter) { + XML.ignoreWhitespace = false; s += <>{str.substring(start, i)}>; s += {str.substr(i, length)}; start = i + length; diff --git a/content/ui.js b/content/ui.js index 8d711d45..251397e7 100644 --- a/content/ui.js +++ b/content/ui.js @@ -235,7 +235,7 @@ function CommandLine() //{{{ */ XML.ignoreWhitespace = typeof str == "xml"; var output =