[TurboGears] Re: nl2br for Kid?

2006-01-05 Thread Bob Ippolito


Something like this, I guess:

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

On Jan 5, 2006, at 12:58 PM, Jared Kuolt wrote:



Is there a simple solution for newline-to-br (nl2br) in Kid?

Simple explantation, I need something that will escape all HTML
entities then add a br/ at every newline.

Thanks in advance,
Jared Kuolt
--
[EMAIL PROTECTED]




[TurboGears] Re: nl2br for Kid?

2006-01-05 Thread Jared Kuolt

Works for me, thanks!

On 1/5/06, Bob Ippolito [EMAIL PROTECTED] wrote:

 Something like this, I guess:

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

 On Jan 5, 2006, at 12:58 PM, Jared Kuolt wrote:

 
  Is there a simple solution for newline-to-br (nl2br) in Kid?
 
  Simple explantation, I need something that will escape all HTML
  entities then add a br/ at every newline.
 
  Thanks in advance,
  Jared Kuolt
  --
  [EMAIL PROTECTED]




--
[EMAIL PROTECTED]