diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js
index f236b696..cf6e11cc 100644
--- a/chrome/content/vimperator/commands.js
+++ b/chrome/content/vimperator/commands.js
@@ -198,7 +198,7 @@ var g_commands = [/*{{{*/
],
[
["javascript", "js"],
- ["javascript {cmd}", "javascript << {endpattern}
{script}
{endpattern}"],
+ ["javascript {cmd}", "javascript <<{endpattern}\\n{script}\\n{endpattern}"], // \\n is changed to
in the help.js code
"Run any javascript command through eval()",
"Acts as a javascript interpreter by passing the argument to eval().
" +
":javascript alert('Hello world') would show a dialog box with the text \"Hello world\".
" +
@@ -654,14 +654,14 @@ var g_mappings = [/*{{{*/
[
["ZQ"],
["ZQ"],
- "Quit Vimperator, no matter how many tabs/windows are open. The session is not stored.",
+ "Quit and don't save the session",
"Works like :qall.",
function(count) { quit(false); }
],
[
["ZZ"],
["ZZ"],
- "Save the session and quit",
+ "Quit and save the session",
"Quit Vimperator, no matter how many tabs/windows are open. The session is stored.
" +
"Works like :xall.",
function(count) { quit(true); }
@@ -699,7 +699,7 @@ var g_mappings = [/*{{{*/
[
["h", ""],
["{count}h", "{count}"],
- "Scroll document to the left" +
+ "Scroll document to the left",
"Count is supported: 10h will move 10 times as much to the left.",
"If the document cannot scroll more, a beep is emmited (unless 'beep' is turned off).",
function(count) { scrollBufferRelative(-1, 0); }
diff --git a/chrome/content/vimperator/help.js b/chrome/content/vimperator/help.js
index 4d086e97..a058951e 100644
--- a/chrome/content/vimperator/help.js
+++ b/chrome/content/vimperator/help.js
@@ -86,8 +86,12 @@ function help(section, easter)
{
var usage = commands[i][USAGE][j];
- usage = usage.replace(/<(?!br\/>)/g, "<");
- usage = usage.replace(/[^b][^r][^\/]>/g, ">");
+ // keep
+ //usage = usage.replace(/<([^b][^r].*>)/g, "<$1");
+ //usage = usage.replace(/[^b][^r][^\/]>/g, ">");
+ usage = usage.replace(//g, ">");
+ usage = usage.replace(/\\n/g, "
");
// color {count} and [url] arguments in the usage, not nice and error prone but the regexp work (for now)
usage = usage.replace(/(^|;|\n|\s|\]|\}|=|
)({.*?}|\[.*?\])/gm, "$1$2");
// and the 'setting' in a different color