[Zope] structured text formatting

Jonothan Farr jfarr@real.com
Mon, 28 Feb 2000 17:12:59 -0800


> The structured text formating doesn't appear to work properly with
> data extracted from an external SQL database - in particular the
> paragraph type formatting is lost although the character type
> formatting does work. How do I get around this problem?


Your lines are probably terminated with '\r\n', but structured text requires
only '\n'.

Try:

string.join(string.split(data, '\r\n'), '\n')

-jfarr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~