Index: tracing/tracing/ui/scripting_control.html |
diff --git a/tracing/tracing/ui/scripting_control.html b/tracing/tracing/ui/scripting_control.html |
index 3bb8f43c3c0a7e8ea885d62b036e2e0d9983b63a..832db4a49f3e84d6d2349c41c97b6aac1554d7ee 100644 |
--- a/tracing/tracing/ui/scripting_control.html |
+++ b/tracing/tracing/ui/scripting_control.html |
@@ -127,13 +127,13 @@ Polymer({ |
promptKeyDown: function(e) { |
e.stopPropagation(); |
- if (!this._isEnterKey(e)) |
- return; |
+ if (!this._isEnterKey(e)) return; |
+ |
e.preventDefault(); |
var promptEl = this.$.prompt; |
var command = promptEl.value; |
- if (command.length === 0) |
- return; |
+ if (command.length === 0) return; |
+ |
promptEl.value = ''; |
this.addLine_(String.fromCharCode(187) + ' ' + command); |
@@ -158,8 +158,9 @@ Polymer({ |
addLine_: function(line) { |
var historyEl = this.$.history; |
- if (historyEl.innerText.length !== 0) |
+ if (historyEl.innerText.length !== 0) { |
historyEl.innerText += '\n'; |
+ } |
historyEl.innerText += line; |
}, |