[pmwiki-users] hard page break in print view

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 19 14:10:53 CDT 2005


On Wed, Oct 19, 2005 at 03:04:25PM -0400, Russ Fink wrote:
> Thank you, that worked like a charm.  I echo your sentiment, is there some 
> way to add this easily into a wiki markup, perhaps a style, (even a 
> cookbook recipe) so that I can say something like,
> %hardpage%
> or even
> (:hardpage:)
> ?

Try:

    $WikiStyleCSS[] = 'page-break-before';
    $WikiStyle['hardpage'] = 
      array('page-break-before' => 'always', 'apply' => 'block');

Then you can use %hardpage% on any element to force a page break
before it, as in

    !! %hardpage% Why PmWiki is the best package ever

Pm





More information about the pmwiki-users mailing list