How do I get HTML Tidy to not put newline before closing tags?

Posted by markvgti on Stack Overflow See other posts from Stack Overflow or by markvgti
Published on 2010-03-22T11:09:07Z Indexed on 2010/03/22 11:11 UTC
Read the original article Hit count: 251

Filed under:
|
|
|
|

HTML Tidy has this infuriating habit of putting a newline before the closing tag. For example:

<p>Some text</p>

becomes

<p>Some text
</p>

How do I tell Tidy to keep the closing tag on the same line as the end of the content?

© Stack Overflow or respective owner

Related posts about html

Related posts about tidy