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: <4.3.2.7.2.20000920095526.018bacc0@pop3.cyperfection.de>
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
>YES

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
>OR ADDED.

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
--
Sebastian Lange
http://www.sl-chat.de/
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:
http://www.w3.org/People/Raggett/tidy/

Tidy your documents ONLINE:
http://www.sl-chat.de/Tidy/
Received on Wednesday, 20 September 2000 04:12:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT