Scriptim/bash-prompt-generator

Carriage Return is unsupported in preview

Scriptim opened this issue · 0 comments

Adding a Carriage Return currently produces an empty span element in the preview.

issue_1_screenshot

Generated markup:

<span id="prompt-preview">
	<span>bash</span>
	<span></span>
	<span>0</span>
</span>

Though a \r character is inserted, this whitespace is ignored.

In the above example, the output should actually be 0ash.