Web interface: fix first nbsp on line
This commit is contained in:
parent
9402883226
commit
03b806d698
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -241,6 +241,11 @@ export default function parseTerminal(text) {
|
|||
.output
|
||||
.replace(/ ([^&]+) /g, ' $1 ');
|
||||
|
||||
// return first space to
|
||||
if (state.output.startsWith(' ')) {
|
||||
state.output = ' ' + state.output.substring(1);
|
||||
}
|
||||
|
||||
|
||||
for (let i = 0; i < state.spanCount; i++) {
|
||||
state.output += '</span>';
|
||||
|
|
Loading…
Reference in New Issue