HTML: support closing empty tags on the same line
See original GitHub issueHTML 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:
- Created 8 years ago
- Comments:8 (3 by maintainers)
Top 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 >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
@RevanProdigalKnight I am still finding better solution for formatting html/xml… Still no result 😃 Your pull requests will be very welcomed
I too am looking forward to this functionality!