On Wed, Apr 23, 2008 at 3:48 PM, Cecil Westerhof <[EMAIL PROTECTED]> wrote:
> > > With TG you are standard protected against HTML-insertion. As long as
...
> I found a solution.
> I replaced:
>     <p>${blogEntry.entryText}</p>
> with:
>      <p>
>       <div class="beEntryText" py:for="line in
> blogEntry.entryText.split('\n')">
>         ${line}
>       </div>
>     </p>
> Maybe not very meat, but it does what I want.

if you want to omit the newlines, why don't you delete them on insert?
it's a cleaner solution. Also as suggested in the other thread, try
working out either with a markup language or a web editor. see
http://cheeseshop.python.org/pypi/TurboTinyMCE/1.0.6 for example.

--~--~---------~--~----~------------~-------~--~----~
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