1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 04:45:46 +01:00

Fix echo bugs. Closes issue #414.

This commit is contained in:
Kris Maglione
2011-03-04 17:39:51 -05:00
parent 50da587af8
commit e2f498a976
4 changed files with 25 additions and 15 deletions

View File

@@ -119,15 +119,20 @@ var MOW = Module("mow", {
// after interpolated data.
XML.ignoreWhitespace = XML.prettyPrinting = false;
if (isObject(data)) {
if (isObject(data) && !isinstance(data, _)) {
this.lastOutput = null;
var output = util.xmlToDom(<div class="ex-command-output" style="white-space: nowrap" highlight={highlightGroup}/>,
this.document);
data.document = this.document;
output.appendChild(data.message);
this.messages.push(data);
try {
output.appendChild(data.message);
}
catch (e) {
util.reportError(e);
util.dump(data);
this.messages.push(data);
}
}
else {
let style = isString(data) ? "pre" : "nowrap";