[pmwiki-users] Honouring empty lines a vertical spaces

Hans design5 at softflow.co.uk
Mon Mar 12 18:46:57 CDT 2007


Monday, March 12, 2007, 8:23:12 PM, Patrick wrote:

>    Markup(':vspace', 'fulltext', 
>     '/<:vspace>/',
>     '<br />');

This gives double as many line spaces.
Perhaps because I also use

   $HTMLPNewline = '<br />';
   
This is needed to honour line breaks.

But at least your suggestion got something moving!
The following gives exactly the spaces as intuitively assumed:

   $HTMLPNewline = '<br />';
   Markup(':vspace', 'fulltext','/<:vspace>/','&nbsp;');

The resulting HTML is not the prettiest with all the <br /> and &nbsp;
invisible characters, but for the purpose quite good.

If I do not use $HTMLPNewline = '<br />'; and use

   Markup(':vspace', 'fulltext','/<:vspace>/','<br />');

then I get one line spacing too few.

Thanks for your help!


Hans




More information about the pmwiki-users mailing list