mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-12 12:35:52 +01:00
Hack on :help NEWS.
--HG-- extra : rebase_source : ad2bc75249d38f42f07b705c1799d7bb1fa2e3ad
This commit is contained in:
@@ -754,6 +754,16 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let body = rec(NEWS, 0);
|
||||||
|
for each (let li in body..li) {
|
||||||
|
let list = li..li.(@NS::highlight == "HelpNewsOld");
|
||||||
|
if (list.length() && list.length() == li..li.length()) {
|
||||||
|
for each (let li in list)
|
||||||
|
li.@NS::highlight = "";
|
||||||
|
li.@NS::highlight = "HelpNewsOld";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
XML.prettyPrinting = XML.ignoreWhitespace = false;
|
XML.prettyPrinting = XML.ignoreWhitespace = false;
|
||||||
return ["application/xml",
|
return ["application/xml",
|
||||||
'<?xml version="1.0"?>\n' +
|
'<?xml version="1.0"?>\n' +
|
||||||
@@ -765,7 +775,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
<h1 tag="versions news NEWS">{config.appName} Versions</h1>
|
<h1 tag="versions news NEWS">{config.appName} Versions</h1>
|
||||||
<toc start="2"/>
|
<toc start="2"/>
|
||||||
|
|
||||||
{rec(NEWS, 0)}
|
{body}
|
||||||
</document>.toXMLString()))
|
</document>.toXMLString()))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user