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

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

From: Dave Raggett <dsr@w3.org>
Date: Fri, 24 Mar 2000 11:45:32 -0600
To: Stephen Reynolds <spr@ozemail.com.au>
Cc: html-tidy@w3.org
Message-ID: <OFB530E96E.7DD69BBD-ON86256869.0048F0B3@rfdinc.com>

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 Friday, 24 March 2000 12:47:31 GMT

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