Fix output width at 80 chars and remove trailing spaces
This commit is contained in:
2
emu.js
2
emu.js
@@ -266,7 +266,7 @@ class Emulator {
|
|||||||
return '<span id="cursor">' + ec + '</span>';
|
return '<span id="cursor">' + ec + '</span>';
|
||||||
else
|
else
|
||||||
return ec;
|
return ec;
|
||||||
}).join('');
|
}).join('').trimEnd();
|
||||||
}).join('\n');
|
}).join('\n');
|
||||||
this.output.innerHTML = html;
|
this.output.innerHTML = html;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#output {
|
#output {
|
||||||
|
width: 80ch;
|
||||||
margin: 1.5em auto;
|
margin: 1.5em auto;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user