[pmwiki-users] Re: Re: AllGroupHeader causes extra vertical space
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Mon Jul 25 10:21:29 CDT 2005
    
    
  
On Mon, Jul 25, 2005 at 04:57:45PM +0200, chr at home.se wrote:
> My original question concerns why I get extra space using
> 
> 	(:include A:)(:nl:)(:include B:)(:nl:)(:include C:)(:nl:)
> 
> when neither A, B nor C exists? See the bottom of
> 
> 	http://www.pmwiki.org/wiki/Test/Newline
Oh, it's probably a bug.  Here's what's happening there:
    a \\
    (:include A:)(:nl:)(:include B:)(:nl:)(:include C:)(:nl:)
    b
The \\ becomes a line break and join, thus
    a  <br />(:include A:)(:nl:)(:include B:)(:nl:)(:include C:)(:nl:)
    b
after the includes we're left with
    a  <br />(:nl:)(:nl:)(:nl:)
    b
and the first (:nl:) turns into a newline because there's no newline
at that point.  Thus we finally end up with
    a  <br />
    b
and the blank line gives us the paragraph.
So, I should probably have the rule treat repeating sequences of
(:nl:) directives as a single one, which would seem to solve the above
problem.
Pm
    
    
More information about the pmwiki-users
mailing list