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: support closing empty tags on the same line

See original GitHub issue

HTML formatter now closes an empty tag on the next line, effectively adding a space into an originally empty tag. An option to close empty tags on the same line (or leave empty tags untouched) would be nice. Example:

<i class="fa fa-warning"></i>

becomes:

<i class="fa fa-warning">
</i>

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
akalongmancommented, Apr 5, 2016

@RevanProdigalKnight I am still finding better solution for formatting html/xml… Still no result 😃 Your pull requests will be very welcomed

1reaction
wadewegnercommented, Apr 12, 2016

I too am looking forward to this functionality!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Closing empty tags, HTML, XML - Stack Overflow
The question is, I've always used <div style="clear:both"></div> to clear a float.
Read more >
In HTML5 self-closing (empty elements) : no '/' ? | Codecademy
Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br /> , is the proper way...
Read more >
WebD2: Common HTML Tags - University of Washington
Examples are images and line breaks. XHTML is more strict than HTML, and requires that all open tags must be closed, even if...
Read more >
What are Self Closing Tags in HTML? - Scaler Topics
The HTML image element is an inline and empty element that only includes attributes; closing tags are not used in the image element....
Read more >
What are empty elements in HTML ? - GeeksforGeeks
An element that does not have an enclosing tag is called an empty element. Adding the closing tags to the empty elements 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