W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: Leaving <!-- comments --> unchanged

From: Dave Raggett <dsr@w3.org>
Date: Mon, 17 Jan 2000 13:12:05 +0000 (GMT Standard Time)
To: Stephen Reynolds <spr@ozemail.com.au>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10001171309560.764-100000@OEMCOMPUTER>
On Sat, 15 Jan 2000, Stephen Reynolds wrote:

> Hello
> 
> I make extensive use of <!-- comments -->. When I run HTML Tidy
> on my files it converts:
> 
> <table>
> <tr>
> <!-- Row 1 Column 1 -->
> <td>
> <!-- paste text here -->
> <p>This is a line of inserted text</p>
> 
> To this:
> 
> <table>
> <tr><!-- Row 1 Column 1 -->
> <td><!-- paste text here -->
> <p>This is a line of inserted text</p>
> 
> Is there any way I can get HTML Tidy to leave my <!-- comments
> --> unchanged?

One idea would be for Tidy to keep a note that a comment started
on a new line. It could then preserve this in the output. I will
look into this.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Monday, 17 January 2000 08:12:14 GMT

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