[pmwiki-users] drowning in information overload

.rp printer at moveupdate.com
Thu Nov 30 14:56:22 CST 2006


From:           	marc <gmane at auxbuss.com>

> 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 /'>';
> 
Marc,
what do you mean by "the initial switch" ?  Is that replacing 
"PZZ(\$GLOBALS['HTMLPNewline'] = ('$1'!='no') ? '<br  />' : '')")
with 
$HTMLPNewline = '<br /'>' ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20061130/157db84f/attachment.html 


More information about the pmwiki-users mailing list