[pmwiki-users] How to stop the creation of a paragraph

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 17 07:34:39 CST 2006


On Fri, Mar 17, 2006 at 12:45:33PM +0100, Sebastian Pipping wrote:
> Carlos AB wrote:
> > I have included the text below inside  Site.PageActions .
> > 
> > %item class=browse accesskey=$[ak_view]%[[{$FullName} | $[View] ]]
> > (:if:)
> > (:if [ loggedin ] && [ !action edit ] :)
> > %item rel=nofollow class=edit 
> > accesskey=$[ak_edit]%[[{$FullName}?action=edit | $[Edit] ]]
> > (:if:)
> > (:if [ loggedin ] && [ !action diff ] :)
> > %item rel=nofollow class=diff 
> > accesskey=$[ak_history]%[[{$FullName}?action=diff | $[History] ]]
> > (:if:)
> > (:if loggedin && auth upload:)
> > %item rel=nofollow class=upload 
> > accesskey=$[ak_attach]%[[{$FullName}?action=upload | $[Attach] ]]
> > (:if:)
> > (:if !action print:)
> > %item rel=nofollow class=print 
> > accesskey=$[ak_print]%[[{$FullName}?action=print | $[Print] ]]
> > (:if:)
> > 
> > [..]
> 
> ---------------------------------------------------------
> Hey cool, isn't that my recipe? :-D

FWIW, all of those (:if:) on lines by themselves are unnecessary
(and just slow things down).  Shorter is 

%item class=browse accesskey=$[ak_view]%[[{$FullName} | $[View] ]]
(:if [ loggedin ] && [ !action edit ] :)
%item rel=nofollow class=edit 
accesskey=$[ak_edit]%[[{$FullName}?action=edit | $[Edit] ]]
(:if [ loggedin ] && [ !action diff ] :)
%item rel=nofollow class=diff 
accesskey=$[ak_history]%[[{$FullName}?action=diff | $[History] ]]
(:if loggedin && auth upload:)
%item rel=nofollow class=upload 
accesskey=$[ak_attach]%[[{$FullName}?action=upload | $[Attach] ]]
(:if !action print:)

Also, I don't see any list markers in there, so the %item ...%
styles won't have any effect.

Pm




More information about the pmwiki-users mailing list