W3C home > Mailing lists > Public > www-validator@w3.org > July 2001

Re: [Tidy-dev] Re: Unknown Encoding - Post HTMLTidy wrap

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 20 Jul 2001 15:49:34 +0200
To: Terje Bless <link@tss.no>
Cc: Andrew Barker <boab@agn.net.au>, www-validator@w3.org, tidy-develop@lists.sourceforge.net
Message-ID: <dccgltc8k1t3b7trjfs2nucli795tn9p6s@4ax.com>
* Terje Bless wrote:
>><meta http-equiv="Content-Type" content=
>>"text/html; charset=ISO-8859-1">

Increase the width with the -wrap option and/or use
--wrap-attributes yes. The latter would produce something like

  <meta http-equiv="Content-Type" content="text/html;

>However, Tidy certainly shouldn't be generating code like that in the first
>place. If you absolutely need to break a line within a tag, then you should
>break it before the start of an attribute and not before the value. It
>probably isn't exactly invalid in the SGML sense, but it's sub-optimal to
>do it that way for other reasons.

Well, this may be impossible some times, e.g. if the attribute value
exceeds the maximum-width given for line wrapping. However, I think it's
far harder to read the source, so Tidy should at least try to do as you
suggest. Any good name for a configuration option to enable/disable
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, 20 July 2001 09:50:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:22 UTC