HTML: add an option to preserve manual wrapping of attributes
See original GitHub issue--wrap-attributes
option has these possible values: auto|force|force-aligned|force-expand-multiline
This allows to whether condense all attributes into one line or auto-wrap each of them.
Would it be possible to just maintain the initial wrapping?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:43
- Comments:19 (4 by maintainers)
Top Results From Across the Web
HTML Tidy 5.2.0 Options Quick Reference
This option specifies if Tidy should line-wrap attribute values, meaning that if the value of an attribute causes a line to exceed the...
Read more >VS Code Turn off wrapAttributes for auto formatter
I am wondering how to setup VS code such that every time I use VS code HTML auto formatter, it does not wrap...
Read more >white-space - CSS-Tricks
White space is honored exactly as it is in the HTML and the text does not wrap until a line break is present...
Read more >Forms in HTML documents - W3C
This attribute specifies the list of character encodings for input data that is accepted by the server processing this form. The value is...
Read more >Getting started with HTML - Learn web development | MDN
An attribute value, wrapped with opening and closing quote marks. Active learning: Adding attributes to an element. Another example of an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a great idea, none of the options allow for wrapping manually.
It would be great to have an option that would perform
force|force-aligned|force-expand-multiline
only if the wrap line length (default 120) has been hit asauto
wraps only as many attributes as it needs to. Something likeauto-expand-multiline|auto-aligned
options?@Montago - Ah, so more like
align-only
.