mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 11:24:12 +01:00
Fix eating of white space in highlighted strings in the MOW
This commit is contained in:
@@ -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)}</>;
|
||||
|
||||
@@ -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(<div class={"ex-command-output "} highlight={highlightGroup}>{template.maybeXML(str)}</div>, doc);
|
||||
XML.ignoreWhitespace = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user