On 7/19/07, noskule <[EMAIL PROTECTED]> wrote:
> noskule schrieb:
> > hi list
> > If a value in a substring contains a linebreak the substring doesn't
> > work. Is there a way arount it?
> >
> > I made an example in http://pmwiki.org/wiki/Main/WikiSandbox
> here a better place: http://pmwiki.org/wiki/PmWiki/MarkupExpressionsTest
> >
> > thanks for any hints
> > nos


I notice it also throws an error, with full path disclosure.  The work
around is to create your own markup expression function (rather than
substr) that takes the ptv name only as a parameter, or perhaps
page:name, parses that and then extracts the value in the function.

Something like:

{(mysubstr comment 0 12)}

Cheers,
Dan

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to