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

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 UTC