[pmwiki-users] drowning in information overload
marc
gmane at auxbuss.com
Wed Nov 15 15:29:23 CST 2006
Tegan Dowling said...
>
> > * display single line breaks instead of requiring double carriageReturns
> > all the time
>
> I have this in my config.php
> // Force PmWiki to honor line breaks -
> http://www.pmwiki.org/wiki/Cookbook/LineBreaks // enable
> (:linebreaks:) and (:nolinebreaks:) markups to toggle between the
> modes:
> $HTMLPNewline = '<br />';
> Markup('linebreaks', 'directives', '/\\(:(no)?linebreaks:\\)/e',
> "PZZ(\$GLOBALS['HTMLPNewline'] = ('$1'!='no') ? '<br
> />' : '')");
This is in the core (scripts/stdmarkup.php)
## (:linebreaks:)
Markup('linebreaks', 'directives',
'/\\(:(no)?linebreaks:\\)/ei',
"PZZ(\$GLOBALS['HTMLPNewline'] = ('$1'!='no') ? '<br />' : '')");
So, presumably (since $HTMLPNewline = ''; is defined in pmwiki.php) you
only need the initial switch with:
$HTMLPNewline = '<br /'>';
> > * how to find out which version of pmWiki is in use
pub/scripts/version.php
--
Best,
Marc
More information about the pmwiki-users
mailing list