W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: HTML comments and SSI

From: Sebastian Lange <lange@cyperfection.de>
Date: Wed, 20 Sep 2000 10:10:53 +0200
Message-Id: <>
To: html-tidy@w3.org
At 13:44 15.09.2000 -0400, Chris Matson wrote:
> > We are agreed that newlines after comments should not be removed

I would like to see the same behaviour added for <INPUT TYPE="hidden">.
I usually write hidden INPUT fields right after the opening FORM tag, 
indented and one per line.
Tidy currently collapses the line breaks and indentation into a single 
space, which is not very "pretty"...

>Comments need to be indented in the pretty version, with no newlines removed

I'd like to add to this that, like with <BR>, Tidy adds a 
one-space-indentation after commments under certain circumstances, for 
example if between comment and next tag or word is a newline plus one or 
more whitespaces (typical for indentation). This appears to be quite 
clearly a bug in the pretty printing routine of Tidy, if someone on this 
list could tell me where and what to look for, I'd happily try to spot and 
fix it.

Sebastian Lange
Maybe the first chat site that validates as HTML
4.0 even though user input may contain HTML codes.

Courtesy to Dave Raggett's HTML Tidy:

Tidy your documents ONLINE:
Received on Wednesday, 20 September 2000 04:12:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC