[pmwiki-users] empty line annoyance
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Sun Apr 24 09:49:35 CDT 2005
    
    
  
On Sun, Apr 24, 2005 at 11:03:46AM +0100, Hans wrote:
> How can I stack blocks of text, with each getting a custom style
> defining background color and padding etc., without the extra vspace
> in between? 
We need a markup or some way for PmWiki to recognize when the
adjacent lines are to be separate blocks rather than joined together
into a single paragraph.
For now, I recommend simply keying off of "%block", so that
any line that begins with this string is automatically placed into
its own block:
   Markup('^%block', '>^!<:',
     '/^%block\\s/',
     '<:p>%block ');
This will cause such blocks to each get their own paragraph, each
wrapped in its own <p>...</p>.  If you want the adjacent blocks to
not be in paragraph tags, use '<:block>%block ' for the fourth parameter.
Pm
    
    
More information about the pmwiki-users
mailing list