1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 23:04:17 +01:00

Fix :regressions white space

This commit is contained in:
Kris Maglione
2008-12-08 09:48:03 -05:00
parent cd84d64b43
commit 6f8e39e84e
2 changed files with 9 additions and 8 deletions

View File

@@ -826,11 +826,9 @@ function CommandLine() //{{{
}
else if (messageHistory.length > 1)
{
let list = <></>;
for (let [,message] in Iterator(messageHistory.messages))
list += <div highlight={message.highlight + " Message"}>{message.str}</div>;
XML.ignoreWhitespace = false;
let list = template.map(messageHistory.messages, function (message)
<div highlight={message.highlight + " Message"}>{message.str}</div>);
liberator.echo(list, commandline.FORCE_MULTILINE);
}
},
@@ -948,6 +946,8 @@ function CommandLine() //{{{
highlightGroup = highlightGroup || this.HL_NORMAL;
// liberator.dump(String(str));
// try { liberator.dump(str.toXMLString()) } catch(e) {};
if (flags & this.APPEND_TO_MESSAGES)
messageHistory.add({ str: str, highlight: highlightGroup });
@@ -1101,8 +1101,7 @@ function CommandLine() //{{{
else if (key == "<BS>")
{
// reset the tab completion
history.reset();
completions.reset();
this.resetCompletions();
// and blur the command line if there is no text left
if (command.length == 0)

View File

@@ -167,8 +167,10 @@ commands.addUserCommand(["regr[essions]"],
}
let runTests = (args.count >= 1 ? 1 : totalTests) - skippedTests;
XML.ignoreWhitespace = false;
liberator.echomsg(<><span style="font-weight: bold">{successfulTests}</span> of <span style="font-weight: bold">{runTests}</span>
tests successfully completed (<span style="font-weight: bold">{skippedTests}</span> tests skipped) in <span class="time-total">{((Date.now() - now) / 1000.0)}</span> msec</>);
tests successfully completed (<span style="font-weight: bold">{skippedTests}</span> tests skipped) in
<span class="time-total">{((Date.now() - now) / 1000.0)}</span> msec</>);
liberator.execute(":messages");
}