1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:18:00 +01:00

Fix sporadic whitespace issue in :help NEWS generation issue.

This commit is contained in:
Kris Maglione
2011-05-26 12:38:34 -04:00
parent 4ba3b0d62a
commit a92b3bb41a

View File

@@ -727,6 +727,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
default xml namespace = NS; default xml namespace = NS;
function rec(text, level, li) { function rec(text, level, li) {
XML.ignoreWhitespace = XML.prettyPrinting = false;
let res = <></>; let res = <></>;
let list, space, i = 0; let list, space, i = 0;
@@ -778,6 +780,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
return res; return res;
} }
XML.ignoreWhitespace = XML.prettyPrinting = false;
let body = rec(NEWS, 0); let body = rec(NEWS, 0);
for each (let li in body..li) { for each (let li in body..li) {
let list = li..li.(@NS::highlight == "HelpNewsOld"); let list = li..li.(@NS::highlight == "HelpNewsOld");