[pmwiki-users] Formatting commands in Site.AllGroupFooter
Patrick R. Michaud
pmichaud at pobox.com
Tue Mar 14 12:57:13 CST 2006
On Tue, Mar 14, 2006 at 07:04:38PM +0100, Jan Erik Moström wrote:
> I looked at the instruction for how to create a footer for all groups and use
> $GroupFooterFmt = '(:include $SiteGroup.AllGroupFooter:)(:nl:)'.
> '(:include $Group.GroupFooter:)(:nl:)';
> My problem is that AllGroupFooter contains the following text
> when I view the result is exactly this, the ---- doesn't get translated into
> a line ... I suppose I'm missing something as usual but what?
The ---- might not be at the beginning of a line.
Yes, I know, it's at the beginning of the first line of
$SiteGroup.AllGroupFooter, but the page it's being appended to
might not have a newline at the end.
This is the purpose of the (:nl:) markup -- it says to insert
a newline if there's not already one there. (We don't always
want to insert a newline, because if one already exists then the
extra-newline will end up becoming a vertical space in the
So, you probably really want to have:
$GroupFooterFmt = '(:nl:)(:include $SiteGroup.AllGroupFooter:)(:nl:)'.
More information about the pmwiki-users