W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2000

RE: Working with Tidy and HTML comments

From: Dave Raggett <dsr@w3.org>
Date: Wed, 21 Jun 2000 18:46:39 +0100 (GMT Daylight Time)
To: Stephen Reynolds <spr@ozemail.com.au>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10006211844470.-632503@hazel>
On Wed, 17 May 2000, Stephen Reynolds wrote:

> What we need to do is preserve the structure of
> comments like:
> 
> <!-- END GRAPHIC -->
> 
> <!-- SECOND TABLE STARTS HERE -->
> 
> Tidy concatinates the two comments like this.
> 
> <!-- END GRAPHIC --><!-- SECOND TABLE STARTS HERE
> -->

I am investigating ways to do what you want. Basically this
means adding a line break property to the comment node and
acting on this when pretty printing the markup tree. It
effects the code for parsing the end of comments in lexer.c
and the code in pprint.c 

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 778 532 0444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Wednesday, 21 June 2000 13:47:07 GMT

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