mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 20:41:29 +02:00
remove the trailing HR from the help tables
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user