[pmwiki-users] PmWiki 2.0.11 released, bugfixes and enhancements

Patrick R. Michaud pmichaud at pobox.com
Tue Oct 18 07:53:30 CDT 2005


On Tue, Oct 18, 2005 at 02:51:10PM +0200, romat2 wrote:
> > The core now includes the (:linebreaks:) markup (from Cookbook:LineBreaks),
> > which causes text on separate lines in the markup to appear as
> > separate lines in the output (i.e., no auto-joining of one
> > line to the previous one).
> 
> Is there a way how to set (:linebreaks:) as default? Some users of my
> wiki site don't know wiki syntax very well (they write as with
> notepad), so they are surprised when several lines of text delimited
> by EOL render as one line and they have to find in help how to avoid
> this.

Add the following to your config.php:

    $HTMLPNewline = '<br  />';

I will probably add a note about this into the sample-config.php file.

Another possibility is to use $GroupHeaderFmt:

    $GroupHeaderFmt = '(:linebreaks:)(:include $Group.GroupHeader:)(:nl:)';

Pm




More information about the pmwiki-users mailing list