[pmwiki-users] Re: Conditional Markup enhancement

chr at home.se chr at home.se
Tue Mar 1 09:03:21 CST 2005


On Tue, 1 Mar 2005, Patrick R. Michaud wrote:

> Still, since the hard part of parsing strings like these
> is handling quotes, and since ParseArgs already knows how
> to do that, perhaps for processing things in an appropriate
> sequence it's sufficient to simply return something like
> your last option, but without the nested key/value pairs:
> 
>    $args['#'] = array(
>       '', '123',
>       'list', 'none',
>       '+', 'list',
>       '-', 'any',
>       '', 'apple pie',
>       'title', 'my page',
>       '+', 'plus',
>       '+', 'something');
> 
> (This is in addition to setting $args[''], $args['+'], $args['list'], etc.)

Fine by me.

Btw, while I'm being difficult ;-), does ParseArgs() handle arguments such 
as these

	list=none  "an argument"=oh-no  "another argument"="oh no..."

i.e. may the keyword be quoted as well?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr




More information about the pmwiki-users mailing list