js-beautify
js-beautify copied to clipboard
HTML Comments at end of line should not be sent to a new line
Description
I think this is some regression, as it already has been fixed once in https://github.com/beautify-web/js-beautify/issues/1337
seems to be broken now.
Input
The code looked like this before beautification:
<p><!-- 1 -->
</p>
Expected Output
The code should have looked like this after beautification:
<p><!-- 1 -->
</p>
Actual Output
The code actually looked like this after beautification:
<p>
<!-- 1 -->
</p>
Steps to Reproduce
Environment
OS: Linux