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

Re: modifying tidy's wrap behavior

From: Peter Evans <evans@i.hosei.ac.jp>
Date: Fri, 28 Jul 2000 13:59:51 +0900
To: html-tidy@w3.org
Message-Id: <20000728134627.00BD.EVANS@i.hosei.ac.jp>
> . . . 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

[which is "tidied" as:]

> <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.

That sounds to me like a browser bug; but let's not quibble and instead
accept that you don't want the line break.

Do you use <pre> anywhere?  If not, perhaps you don't need line breaks. 
And if this is so, you could just do a spot of postprocessing to remove
them wholesale, converting from

   [line break]<img
 
  ">[line break]

to

   <img

   ">

respectively.  Too lazy to learn perl (etc.), I use Thomas Lundin's
MS-DOS/Windows-based search-and-replace utility "SNR" for this kind of
thing.  As shareware goes, it's not cheap, but it's handy for all sorts
of purposes.  (Most of its rivals are limited to working line by line,
and won't insert or delete line breaks.)  Strangely, SNR doesn't seem
to have its own web page, but if you poll Google for "thomas lundin snr"
you'll find various sources for it.

++++++++++++++++
Peter Evans mailto:evans@i.hosei.ac.jp
Received on Friday, 28 July 2000 01:02:02 GMT

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