htmlbeautifier icon indicating copy to clipboard operation
htmlbeautifier copied to clipboard

Formatting incorrect when setting attributes

Open j-manu opened this issue 2 years ago • 1 comments

<option <%= link[:selected] ? 'selected' : '' %>>
          <%= link[:name] %>
        </option>

This code does not get formatted correctly.

j-manu avatar Mar 04 '22 03:03 j-manu

Same error also happens for me! Line 5 is indented which should not be the case!

Screenshot 2022-05-06 at 12 11 05

When removing <%= "selected" if condition %> from line 2 everything works perfect.

akimthedream avatar May 06 '22 10:05 akimthedream