On Tuesday 27 February 2007 17:59, you wrote: > > > There is a problem with PageTextVariables with the latest beta: it is > > > sometimes impossible to set such a variable with the markup: > > > > > > (:MyVar:Some value:) > > > [...] > it's treating the (:markup:) rule as defining a page text variable > called "markup" with the value ") [=\n(:MyVar:Some value" , and > therefore misses the (:MyVar:...:) definition entirely. > > I think the solution is to simply say that a page text variable > defined using (:TextVar:...:) cannot have a closing paren immediately > following the second colon. That's what most authors will expect. > > To get a closing paren at the beginning of a page text var using > this markup, one would have to write (:TextVar: ) ... :), > and we'll likely strip the leading spaces. But this is terribly > uncommon anyway.
Patrick, sorry I replied to you only instead of to the list. Just posting for the list a little fix I am using now : got it working. If anyone has similar problem, this can be set in config.php: $PageTextVarPatterns['(:var:...:)'] = '/\\(:(\\w[-\\w]*):\\s?([^\\)].*?)?:\\)/s'; Thanks, Petko _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
