1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-26 15:11:25 +02:00

remove the trailing HR from the help tables

This commit is contained in:
Doug Kearns
2007-07-13 16:40:36 +00:00
parent 65ddc4a375
commit e884844dad
+5 -2
View File
@@ -33,6 +33,7 @@ Vimperator.prototype.help = function(section, easter) //{{{
vimperator.echoerr("E478: Don't panic!"); vimperator.echoerr("E478: Don't panic!");
return; return;
} }
if ((arguments[3] && arguments[3].inTab))// || !window.content.document.open) if ((arguments[3] && arguments[3].inTab))// || !window.content.document.open)
openURLsInNewTab("", true); openURLsInNewTab("", true);
else else
@@ -46,6 +47,7 @@ Vimperator.prototype.help = function(section, easter) //{{{
function makeHelpString(commands, beg, end, func) function makeHelpString(commands, beg, end, func)
{ {
var ret = ""; var ret = "";
var separator = '<tr class="separator"><td colspan="3"><hr/></td></tr>\n';
for (var command in commands) for (var command in commands)
{ {
// the usage information for the command // the usage information for the command
@@ -103,11 +105,12 @@ Vimperator.prototype.help = function(section, easter) //{{{
ret += '</td></tr>'; ret += '</td></tr>';
// add more space between entries // add more space between entries
// FIXME: if (i < commands.length-1) ret += separator;
ret += '<tr class="separator"><td colspan="3"><hr/></td></tr>\n';
} }
ret = ret.replace(new RegExp(separator + '$'), ''); // FIXME: far too tasty!
return ret; return ret;
} }
function makeOptionsHelpString(command) function makeOptionsHelpString(command)
{ {
var ret = ""; var ret = "";