From b334f2538dda00274cf198a0e48adeafae638f34 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 2 Nov 2008 01:56:30 +0000 Subject: [PATCH] Turn off white-space:pre for the completions list --- content/template.js | 2 +- content/ui.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 =
{template.maybeXML(str)}
; - XML.ignoreWhiteSpace = true; + XML.ignoreWhitespace = true; lastMowOutput = output; @@ -1321,7 +1321,6 @@ function ItemList(id) //{{{ if (typeof a == "function") a = a(); - XML.ignoreWhitespace = true; let row =