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

chr at home.se chr at home.se
Mon Jul 25 02:59:09 CDT 2005


On Sun, 24 Jul 2005, Patrick R. Michaud wrote:

> On Sun, Jul 24, 2005 at 11:13:41PM +0200, chr at home.se wrote:
> > The problem with this is that (:nl:) causes empty vertical space at the 
> > beginning and end of pages...
> > Is (:nl:) really needed?
> > What is its purpose?  (I know it creates a new line of course:-)
> 
> (:nl:) adds a newline only if there isn't one already there.
> Thus,  
> 
>     (:include Group.SomePage)(:nl:)This is some text
> 
> will add a newline only if Group.SomePage doesn't end with a newline.
> This is so that we can be sure that "This is some text" appears
> at the beginning of a line, without adding an extra (blank) line
> when it's not needed.

Um... from your description above, I suspect it's not working properly.
Does this page render correctly in your opinion?

	http://www.pmwiki.org/wiki/Test/Newline

/Christian

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






More information about the pmwiki-users mailing list