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

wrap-attributes not wrapping?

From: Rzepa, Henry <h.rzepa@ic.ac.uk>
Date: Mon, 19 Feb 2001 16:55:22 +0000
Message-Id: <p0501041db6b6fcdd5644@[]>
To: html-tidy@w3.org
Cc: g.gkoutos@ic.ac.uk
We have some long  element attributes which by  default Tidy places
on a single line., sometimes  400 characters wide, which causes problems

The config.txt file contains entries such as

wrap: 40
wrap-attributes: yes
wrap-script-literals: yes

To quote from the documentation

"If set to yes, attribute values may be wrapped across 
lines for easier editing. The default is no. This option can be set
 independently of wrap-scriptlets "

When applied to  e.g. (expand a really long string to about  120 characters)

    <object data="a.html">
      <param name="long"
      value="a really long string...." />
     <a href="a really ...">
    <a href="somewhere.html"
    onmouseover="document.status = '...some really long lines ..';">

and passed through either JTidy or BBTidy no wrapping occurs
on either the attribute or the script.  Other
config.txt definitions ARE acted upon.

Can anyone reproduce, is it just  JTidy and BBTidy that have this problem,
or is it generic in the Aug 4 source? 

Henry Rzepa. +44 (0)20 7594 5774 (Office) +44 (0870) 132-3747 (eFax)
Dept. Chemistry, Imperial College, London, SW7  2AY, UK. 
Received on Monday, 19 February 2001 11:59:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:49 UTC