From 9d06b49d898ad6ba5184f2c052eee7b97414bdd3 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 1 Dec 2008 20:55:47 +0000 Subject: [PATCH] Fix eating of white space in highlighted strings in the MOW --- content/template.js | 1 - content/ui.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/content/template.js b/content/template.js index 788fc096..1a070f30 100644 --- a/content/template.js +++ b/content/template.js @@ -177,7 +177,6 @@ const template = { XML.ignoreWhitespace = false; s += <>{str.substring(start, i)}; s += highlight(str.substr(i, length)); - liberator.dump(s); start = i + length; } return s + <>{str.substr(start)}; diff --git a/content/ui.js b/content/ui.js index f5cf01ae..6bf3394a 100644 --- a/content/ui.js +++ b/content/ui.js @@ -378,7 +378,7 @@ function CommandLine() //{{{ * The problem elsewhere is that E4X tends to insert new lines * after interpolated data. */ - XML.ignoreWhitespace = typeof str == "xml"; + XML.ignoreWhitespace = typeof str != "xml"; let output = util.xmlToDom(
{template.maybeXML(str)}
, doc); XML.ignoreWhitespace = true;