W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

modifying tidy's wrap behavior

From: Edward N. Zalta <zalta@mally.Stanford.EDU>
Date: Thu, 27 Jul 2000 10:24:59 -0800
Message-Id: <200007271825.LAA05996@mally.Stanford.EDU>
To: html-tidy@w3.org
Tidy looks to be a terrific tool for our project.  However, it has one feature  
which prevents us from using it---it wraps a line at a point that is  
inappropriate given our HTML files; we would like to see whether there is a way  
to modify this behavior.

To get around the mathematics limitations of HTML, we frequently
format logical formulas by stringing together a series of specially created  
graphics and emphasized text, for example:

<img src="foo.gif">this-string-should-stay-adjacent-to-gif--nospace-allowed

Though we want tidy to wrap lines at 72 characters, and our project requires
"wrap-attributes: no", tidy introduces a linebreak into the above
at the first <em> tag, thereby producing:

<img src="foo.gif">
this-string-should-stay-adjacent-to-gif--nospace-allowed

This introduces a space between the graphic and the text, and that
space ruins the logical formula which we are attempting to display.

Do we need to change the way the markup tree is built or the
way the tree is pretty printed?  Could you at least point us
to the spot (or spots) in the source where this behavior is generated.

Thanks for your help,
 Yours,
Ed
------
Edward N. Zalta
Senior Research Scholar,
    Center for the Study of Language and Information
Stanford University
Home Page URL = http://mally.stanford.edu/zalta.html
Received on Thursday, 27 July 2000 14:25:05 GMT

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