From 35bbf562d49b55ebad0844b864ad646965cf254e Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 17 Feb 2011 17:46:34 -0500 Subject: [PATCH] Hack on :help NEWS. --HG-- extra : rebase_source : ad2bc75249d38f42f07b705c1799d7bb1fa2e3ad --- common/content/dactyl.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index cfca1372..b67928d9 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -754,6 +754,16 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { 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; return ["application/xml", '\n' + @@ -765,7 +775,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {

{config.appName} Versions

- {rec(NEWS, 0)} + {body} .toXMLString())) ]; }