js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

HTML Comments at end of line should not be sent to a new line

Open eiswind opened this issue 2 years ago • 0 comments

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

Settings

eiswind avatar Sep 04 '22 09:09 eiswind