From ce06d55415dc779775959f57819c5fbe3d8b46aa Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 4 Oct 2008 05:37:57 +0000 Subject: [PATCH] Fix some brokenness --- content/ui.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;