Preserve attributes line break in HTML
See original GitHub issuelike 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">
Issue Analytics
- State:
- Created 9 years ago
- Reactions:12
- Comments:23 (5 by maintainers)
Top Results From Across the Web
How to Preserve Newlines, Line Breaks, and Whitespace in ...
If you want your text to overflow the parent's boundaries, you should use pre as your CSS whitespace property. Using white-space: pre wraps ......
Read more >Render a string in HTML and preserve spaces ...
You can use white-space: pre-line to preserve line breaks in formatting. There is no need to manually insert html elements. .popover { white-space:...
Read more >The Dos and Don'ts of Adding an HTML Line Break
In HTML, the <br> element creates a line break. You can add it wherever you want text to end on the current line...
Read more >HTML: <pre> tag
The HTML <pre> tag defines preformatted text preserving both whitespace and line breaks in the HTML document. This tag is also commonly referred...
Read more >HTML pre tag
Text in a <pre> element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will...
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
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?