diff --git a/common/modules/completion.jsm b/common/modules/completion.jsm index ff9c0917..87453c82 100644 --- a/common/modules/completion.jsm +++ b/common/modules/completion.jsm @@ -657,6 +657,7 @@ var CompletionContext = Class("CompletionContext", { } catch (e) { util.reportError(e); + XML.ignoreWhitespace = XML.prettyPrinting = false; cache[idx] = util.xmlToDom(
  • {this.text} 
  • diff --git a/common/modules/template.jsm b/common/modules/template.jsm index 82acb635..09300d0e 100644 --- a/common/modules/template.jsm +++ b/common/modules/template.jsm @@ -96,7 +96,7 @@ var Template = Module("Template", { join: function join(c) function (a, b) a + c + b, map: function map(iter, func, sep, interruptable) { - XML.ignoreWhitespace = false; XML.prettyPrinting = false; + XML.ignoreWhitespace = XML.prettyPrinting = false; if (typeof iter.length == "number") // FIXME: Kludge? iter = array.iterValues(iter); let res = <>; @@ -201,7 +201,7 @@ var Template = Module("Template", { var desc = this.processor[1].call(this, item, item.description); } - XML.ignoreWhitespace = false; XML.prettyPrinting = false; + XML.ignoreWhitespace = XML.prettyPrinting = false; // return