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.

Preserve attributes line break in HTML

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:12
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jfletcher-nuxeocommented, Feb 16, 2016

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.

1reaction
bitwisemancommented, May 11, 2017

@jorgeramirez - See #1015. Does wrap_attributes = "force-aligned" work for you?

Read more comments on GitHub >

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

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