threedaymonk / htmlbeautifier

A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
MIT License
325 stars 59 forks source link

Don't require final / for HTML void elements #7

Closed masal closed 10 years ago

masal commented 10 years ago

Don't indent non-XHTML style self-closing/void elements such as

<meta>
<input>
<br>

List of void elements is from http://www.w3.org/TR/html-markup/syntax.html#syntax-elements

threedaymonk commented 10 years ago

Great! Thank you very much.

threedaymonk commented 10 years ago

Released as gem version 0.0.9.

masal commented 10 years ago

Thanks!