Re: tidy: request for enhancement: empty lines between block-level elements

----- Original Message ----- 
From: "Dave Raggett" <dsr@w3.org>
Newsgroups: gmane.comp.web.html-tidy.user
Cc: <html-tidy@w3.org>
Sent: Friday, November 12, 2004 10:26 AM
Subject: Re: tidy: request for enhancement: empty lines between block-level 
elements


>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Amelia,
>
> I have forwarded your email to html-tidy@w3.org where other people
> may be able to help you. I myself am no longer maintaining Tidy
> and that task has been taken over by other volunteers.
>
> On Thu, 11 Nov 2004, Amelia A Lewis wrote:
>
>> Heylas,
>>
>> Thanks for tidy, it's wonderful as a checking tool.
>>
>> I've actually got two requests for enhancement, but I suspect one
>> of them is much more difficult than the other, given that tidy is
>> designed around a parsed tree model.
>>
>> RFE: add option for empty-lines between block-level elements.
>>
>> Justification: I find it much easier to read and edit (x)html if
>> each <p> and <hN> and so on is separated from the next by a blank
>> line:
>>
>> <h2 class="wotsis">header</h2>
>>
>> <p>lorem ipsum dolor est.</p>
>>
>> <p>and then some.</p>
>>
>> tidy is useful for intelligently wrapping paras and long headings
>> and things, but it strips out the useful whitespace:
>>
>> <h2 class="wotsis">header</h2>
>> <p>lorem ipsum dolor est.</p>
>> <p>and then some.</p>
>>
>> Clearly, this is just a preference, but it's moderately analogous
>> to the existing break-before-br option (which I always turn on).
>> Something like line-between-blocks.
>>
>> Rather than listing tags which would deserve this treatment, I'd
>> suggest that all block level elements be optionally spaced in this
>> fashion.  This would likely produce some oddities, but for the
>> most part, it would help me immensely, in using tidy for cleanup.

Have you tried "--vertical-space yes" ?



>>
>> RFE: put two spaces after a period in text.
>>
>> May not be doable; less important.  It's a relic of years with a
>> typewriter, probably, where, again, the white space is visually
>> useful to the reader/editor, because it helps set off a sentence
>> more clearly.  Again, the request is for an option in the config
>> file, such as double-space-after-dot (I'm verbose, aren't I?).
>> Again, this would produce some anomalies, but it should be doable,
>> as the algorithm already wraps and sets spacing (well, does it set
>> spacing, though?  I admit, embarrassed, that I haven't tried to
>> hack the code for either of these options).
>>
>> Both requests would presumably only be turned on for
>> pretty-printed output, not for use of tidy as an error-checking
>> tool.
>>
>> Thanks again,
>>
>> Amy!
>>
>
> - -- 
> Dave Raggett <dsr@w3.org>  W3C lead for voice and multimodal.
> http://www.w3.org/People/Raggett +44 1225 866240 (or 867351)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFBlI/lb3AdEmxAsUsRAmmAAKCxX02liCulapoHx4f7m28TsBx5mQCgxIEN
> Ho3mV0r+AEC4XC+zlejt4o0=
> =MayB
> -----END PGP SIGNATURE-----
>
> 

Received on Friday, 12 November 2004 15:02:48 UTC