Re: tidy and comments (fwd)

* Lars Fredriksen wrote:
>Bjoern Hoehrmann wrote:
>
>> * Lars Fredriksen wrote:
>> >Is there a good reason tidy(aug 4, 2000) removes the comments?
>>
>> Tidy doesn't do so. Maybe you point us at example HTML and config files?

>Hi Bjørn,
      ^ Hey! That's not funny! :)

>I run tidy like this:
>
>tidy -ic -ascii -asxml test.html > test.html.x
>
>The test file is attached. You will notice that in the output, the comment
>line with the RCS tag is removed.

The relevant line is

  <! RCS id: $Id: tidy_comment_test.html,v 1.5 1999/05/21 16:01:18 lars Exp $>

And yes, Tidy removes it. I don't think we should change anything to
allow this construct, you could rather use a processing instruction,
i.e.

  <? RCS id: $Id: tidy_comment_test.html,v 1.5 1999/05/21 16:01:18 lars Exp $>

or a real comment

  <!-- RCS id: $Id: tidy_comment_test.html,v 1.5 1999/05/21 16:01:18 lars Exp $-->

That'd be more appropriate.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/

Received on Friday, 15 June 2001 16:05:47 UTC