question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Reactions:43
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

16reactions
Robulacommented, Feb 16, 2017

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 as auto wraps only as many attributes as it needs to. Something like auto-expand-multiline|auto-aligned options?

5reactions
bitwisemancommented, Jun 9, 2017

@Montago - Ah, so more like align-only.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found