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>';
|
||||
else
|
||||
return ec;
|
||||
}).join('');
|
||||
}).join('').trimEnd();
|
||||
}).join('\n');
|
||||
this.output.innerHTML = html;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ body {
|
||||
}
|
||||
|
||||
#output {
|
||||
width: 80ch;
|
||||
margin: 1.5em auto;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user