RE: Working with Tidy and HTML comments

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 UTC