Victor schrieb:
I am considering how to replace newline (\n) with <br/>. At first, I
tried this:

XML('<br \>'.join(content.split('\n')))

It works, but however, it is very dangerous.

With Genshi I would suggest using something like:
<py:for each="line in content.split('\n')">${line}<br/></py:for>

Probably you can do something similar with Kid, too.

fs

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to