1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 16:55:51 +01:00

Fix eating of white space in highlighted strings in the MOW

This commit is contained in:
Kris Maglione
2008-12-01 20:55:47 +00:00
parent e7248c8b8b
commit 9d06b49d89
2 changed files with 1 additions and 2 deletions

View File

@@ -177,7 +177,6 @@ const template = {
XML.ignoreWhitespace = false; XML.ignoreWhitespace = false;
s += <>{str.substring(start, i)}</>; s += <>{str.substring(start, i)}</>;
s += highlight(str.substr(i, length)); s += highlight(str.substr(i, length));
liberator.dump(s);
start = i + length; start = i + length;
} }
return s + <>{str.substr(start)}</>; return s + <>{str.substr(start)}</>;

View File

@@ -378,7 +378,7 @@ function CommandLine() //{{{
* The problem elsewhere is that E4X tends to insert new lines * The problem elsewhere is that E4X tends to insert new lines
* after interpolated data. * after interpolated data.
*/ */
XML.ignoreWhitespace = typeof str == "xml"; XML.ignoreWhitespace = typeof str != "xml";
let output = util.xmlToDom(<div class={"ex-command-output "} highlight={highlightGroup}>{template.maybeXML(str)}</div>, doc); let output = util.xmlToDom(<div class={"ex-command-output "} highlight={highlightGroup}>{template.maybeXML(str)}</div>, doc);
XML.ignoreWhitespace = true; XML.ignoreWhitespace = true;