From 0d32e64630c37ad5160dfc84a3fcfdbe3cb346f9 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 9 Mar 2011 07:09:18 -0500 Subject: [PATCH] Add tags for individual versions in :help news. Fix dactyl.exportHelp. --- common/content/dactyl.js | 8 +++++--- common/modules/config.jsm | 2 +- pentadactyl/NEWS | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 6296b9ac..b7e1cca2 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -751,8 +751,10 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { } list = null; - if (level == 0 && /^.*:\n$/.test(match.par)) - res +=

{template.linkifyHelp(par.slice(0, -1), true)}

; + if (level == 0 && /^.*:\n$/.test(match.par)) { + let text = par.slice(0, -1); + res +=

{template.linkifyHelp(text, true)}

; + } else { let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par); res +=

{ @@ -907,7 +909,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { for (let [file, ] in Iterator(services["dactyl:"].FILE_MAP)) { dactyl.open("dactyl://help/" + file); dactyl.modules.events.waitForPageLoad(); - let data = [ + var data = [ '\n', '\n' diff --git a/common/modules/config.jsm b/common/modules/config.jsm index 9fb101a9..0133413b 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -386,7 +386,7 @@ var ConfigBase = Class("ConfigBase", { Disabled color: red; FontFixed font-family: monospace !important; - FontCode font-size: 9pt; font-family: -mox-fixed, monospace !important; + FontCode font-size: 9pt; font-family: monospace !important; FontProportional font-size: 10pt; font-family: "Droid Sans", "Helvetica LT Std", Helvetica, "DejaVu Sans", Verdana, sans-serif !important; // Hack to give these groups slightly higher precedence diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS index e81e5777..79ac146c 100644 --- a/pentadactyl/NEWS +++ b/pentadactyl/NEWS @@ -157,10 +157,10 @@ a boolean. [b2] - 'mapleader' is now an option rather than a :let variable. [b4] - - 'passkeys' is now a sitemap with key chain support rather - than a regexpmap. [b6] - - 'showmode' is now a regexplist. [b6] - - 'showstatuslinks' and 'showtabline' are now string options. [b4] + - 'passkeys' is now a [sitemap] with key chain support rather + than a [regexpmap]. [b6] + - 'showmode' is now a [regexplist]. [b6] + - 'showstatuslinks' and 'showtabline' are now [string] options. [b4] • IMPORTANT: Command script files now use the *.penta file extension. [b2] • IMPORTANT: Plugins are now loaded from the 'plugins/' directory in 'runtimepath' rather than 'plugin/'. [b1]