Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Nov 9, 2023
1 parent 64af8a0 commit 523d5c5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
if (exampleOutput) {
output = exampleOutput.text;
outputJson = "";
const outputWithSpace = /^\s/.test(output) ? output : ` ${output}`;
renderTypingEffect(outputWithSpace);
// if output doesn't start with space, add space in front of output
const prefix = /^\s/.test(output) ? "" : " ";
renderTypingEffect(prefix+output);
return;
}
Expand Down

0 comments on commit 523d5c5

Please sign in to comment.