[Pmwiki-users] vspace paragraphs

Patrick R. Michaud pmichaud
Wed Nov 3 18:46:37 CST 2004


On Wed, Nov 03, 2004 at 11:23:43PM +0000, Val Sharp wrote:
> 
> - if the block is terminated by another block-markup item, then it's 
> given a class which sets the bottom-margin to zero, and the following 
> item is give a class which sets its top-margin to zero.

This requires a bit of a lookahead, since the block has to be able
know what the subsequent lines will generate before it can generate
its text.  For example:

   * one
   ** two
   ** two
   ** two
   * ONE
   Some text

at the time the first "* one" line is generated, it has to search all of
the subsequent lines until it finds the end of the list (i.e., at
Some text) before it can know if it needs to have the bottom margin 
suppressed.

And it gets a fair bit harder with

   # one

   # two

   # three
   some text

because simply finding a blank line probably should not cause the
(numbered) list to terminate.

Somehow I think the <p class='vspace'></p> solution is cleaner.  :)

Pm



More information about the pmwiki-users mailing list