[pmwiki-users] Re: Re: AllGroupHeader causes extra vertical space

chr at home.se chr at home.se
Mon Jul 25 09:57:45 CDT 2005


On Mon, 25 Jul 2005, Patrick R. Michaud wrote:

> So, the purpose of (:nl:) is to add in an extra newline only when 
> it's needed:
> 
>     (:include Site.SiteGroupHeader:)(:nl:)Some text
> 
> which will always come out to
> 
>     %define=Pm color=purple font-style=italic%
>     Some text
> 
> regardless of Site.SiteGroupHeader having a newline at the end of its
> %define=... % statement..  A similar case exists for includes at the end
> (e.g., footers).  Something like
> 
>     (:nl:)(:include {$Group}.GroupFooter:)(:nl:)(:include Site.SiteGroupFooter:)
> 
> can be used to make sure that each of the includes start at the
> beginning of a line without inadvertently creating a blank one.

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

> Hope this helps,

It does, now I understand how it's supposed to work at least :-)

/C

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr






More information about the pmwiki-users mailing list