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@[155.198.234.86]>
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
elsewhere.

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...." />
    </object>
     <a href="a really ...">
    text</a> 
    <a href="somewhere.html"
    onmouseover="document.status = '...some really long lines ..';">
    test</a>

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. 
http://www.ch.ic.ac.uk/rzepa/
Received on Monday, 19 February 2001 11:59:06 GMT

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