[pmwiki-users] Keep() function documented

Patrick R. Michaud pmichaud at pobox.com
Tue Jul 5 15:54:59 CDT 2005


On Tue, Jul 05, 2005 at 10:30:59PM +0200, Joachim Durchholz wrote:
> Patrick R. Michaud wrote:
> >Well, at the moment Keep tokens aren't legally nestable, although 
> >we can fix that at some point if we need to.
> 
> Um... there's nothing that would prevent a markup from Keep()ing text 
> stretches that contain other Keep tokens, or would there be?

There's nothing to "prevent" someone from doing it, but such
nested keeps are generally not restored properly.  That's what
I meant by "not legally nestable" -- someone can write a script
that does it, but they may not be entirely happy with the results.

A quick fix for this might be to have Keep() automatically restore
any nested tokens before building the new one.

Pm



More information about the pmwiki-users mailing list