js-beautify: Preserve attributes line break in HTML
like this
<div id="anId"
name="aName"
class="aClass"
onclick="alert('hello')"
ondblclick="alert('hello')">asdf</div>
<input type="text"
name="aName"
class="aClass"
id="anId">
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 12
- Comments: 23 (5 by maintainers)
So
wrap_attributes=auto
doesn’t seem to do anything. What’s the expected behavior? The code doesn’t seem to do anything with that setting.wrap_attributes=force
does not completely address OP’s issue. With this convention the indentation should be based on the position of the first attribute, not based on a fixed width. Maybe I’ll make this a new issue.EDIT: I see there are already some issues for this request, I’ll update it.
@jorgeramirez - See #1015. Does
wrap_attributes = "force-aligned"
work for you?