[pmwiki-devel] Multi-line field with PmForm

DaveG pmwiki at solidgone.com
Thu Mar 4 05:53:55 CST 2010



On 3/3/2010 11:57 PM, DaveG wrote:
> When using PmForm it looks like multi-line fields are stored in the base
> page with each %0a on a physically separate line, rather than the normal
> PmWiki way of storing the entire page text on a single line.
>
> Here's a snip of what I mean. I've edited from the real thing to avoid
> email wrapping, but this demonstrates the end effect:
>
> text=(:pmform savedata:)(:name:test
> %0amulti
> %0aline:)%0a(:email:djg:)%0a
>
>
> I believe it's caused by the definition of the $PageTextVarPatterns,
> since form data saved using an alternate pattern I also use does not
> cause this problem.
More testing indicates that the pattern is not the cause. Anyone have 
any suggestions on what the cause might be? My premise at the moment, is 
that it might be some sort of \n or \r\n issue.



More information about the pmwiki-devel mailing list