1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-21 19:41:26 +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!");
return;
}
if ((arguments[3] && arguments[3].inTab))// || !window.content.document.open)
openURLsInNewTab("", true);
else
@@ -46,6 +47,7 @@ Vimperator.prototype.help = function(section, easter) //{{{
function makeHelpString(commands, beg, end, func)
{
var ret = "";
var separator = '<tr class="separator"><td colspan="3"><hr/></td></tr>\n';
for (var command in commands)
{
// the usage information for the command
@@ -103,11 +105,12 @@ Vimperator.prototype.help = function(section, easter) //{{{
ret += '</td></tr>';
// add more space between entries
// FIXME: if (i < commands.length-1)
ret += '<tr class="separator"><td colspan="3"><hr/></td></tr>\n';
ret += separator;
}
ret = ret.replace(new RegExp(separator + '$'), ''); // FIXME: far too tasty!
return ret;
}
function makeOptionsHelpString(command)
{
var ret = "";