Skip to content

Commit

Permalink
Web interface: fix first nbsp on line
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZlo13 committed Sep 22, 2023
1 parent 9402883 commit 03b806d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/svelte-portal/public/build/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/svelte-portal/public/build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/svelte-portal/public/build/bundle.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions components/svelte-portal/src/lib/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
Expand Down

0 comments on commit 03b806d

Please sign in to comment.