On Jul 7, 7:15 pm, Bastian <[EMAIL PROTECTED]> wrote:
> Hello,
>
> requesting a turbogears 1.0.1 based page with a html form on it causes
> prepopulated values beeing translated from '\n' line break style to '\r
> \n' line break style. The values have been prepopulated by the
> request. I'm using TurboGears Forms.
>
> How to avoid this translation.
>
> Regards
>
> Bastian

I'm using my own widget (veery simple one...), and to replace those
'\n' to '<br/>' I just split the lines and append a <br/>. It's kinda
dirty, but it works...

        <span py:for="line in lines.splitlines()">${line}<br/></span>

hope it helps...

cya

--
Nicolás Miyasato


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to