diff --git a/content/ui.js b/content/ui.js index 66c26eaf..d68f860c 100644 --- a/content/ui.js +++ b/content/ui.js @@ -208,9 +208,14 @@ liberator.CommandLine = function () //{{{ let doc = multilineOutputWidget.contentDocument; let win = multilineOutputWidget.contentWindow; - XML.ignoreWhitespace = false; + /* If it's already XML, assume it knows what it's doing. + * Otherwise, white space is significant. + * The problem elsewhere is that E4X tends to insert new lines + * after interpolated data. + */ + XML.ignoreWhitespace = typeof str == "xml"; var output =
{liberator.template.maybeXML(str)}
; - XML.ignoreWhitespace = true; + XML.ignoreWhiteSpace = true; lastMowOutput = output;