This message appears to be relevant for the Kid list. I don't know if anyone here has seen this same problem (literal "\n"s appearing in the output).
Kevin ---------- Forwarded message ---------- From: Michele Cella <[EMAIL PROTECTED]> Date: Mar 25, 2006 6:28 AM Subject: [tg-trunk] My kid \n problem To: TurboGears Trunk <turbogears-trunk@googlegroups.com> Hi guys, I think I've found the source of my \n in the output problem with Kid, if you run this script (stealing web space from #613 :D): http://trac.turbogears.org/turbogears/attachment/ticket/613/test-kid.py What output you get? This is my output: plain template -------------- <?xml version="1.0" encoding="utf-8"?> <script>hello world</script> plain template with var ----------------------- <?xml version="1.0" encoding="utf-8"?> <script>bye\n\tworld</script> another template with var ------------------------- <?xml version="1.0" encoding="utf-8"?> <div><span>\n bye\n</span><span>kid test</span></div> another template with py:content -------------------------------- <?xml version="1.0" encoding="utf-8"?> <div><span>bye</span><span>kid test</span></div> As you can see when Kid does a $ substitution my output ends up to contain \n. I think the problem could be located somewhere in kid/parser.py at line 375, the text_interpolate function but I'm really lost there as I'm not a kid or elementtree expert. Any idea? it's really annoying I can't make many things in this situation. Ciao Michele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to turbogears-trunk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-trunk -~----------~----~----~----~------~----~------~--~--- -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss