[pmwiki-users] Pu

Dominique Faure dominique.faure at gmail.com
Tue Jul 29 01:48:21 CDT 2008


On Tue, Jul 29, 2008 at 05:17, DaveG <pmwiki at solidgone.com> wrote:
>
>> 2] Quotes within the $2 text now appear in the final output as \" rather
>> than simply ". I've tried moving the $2 around to no avail. Any suggestions
>> there?
>
> Using PSS as described here removed the backslashes before the quotes. I now
> have this (with a few tweaks):
>
> Markup('^Country:', 'fulltext',
>   '/^Country\\s+([a-zA-Z][a-zA-Z]):(.*?)&gt;&gt;&lt;&lt;/isme',
>   "Keep('<div class=\'country\'
> style=\'background-image:url(\"'.\$GLOBALS['PubDirUrl'].'/skins/dropdown/flags/'.
> strtolower($1). '.png\")\'>'. PSS('$2'). '</div>')"
> );
>
>
>> 1] What does the first '<:block>' do? Didn't appear to do anything.
> Still interested in the intent of this.
>
> Thanks for pointing me in the right direction.
>
>  ~ ~ Dave
>

It was to ensure that the output is treated as a sole block, and not
being encapsulated into a paragraph.

-- 
Dominique



More information about the pmwiki-users mailing list