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:
@@ -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)}</>;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user