[Zope] structured text formatting

John Williams J.A.R.Williams@aston.ac.uk
01 Mar 2000 07:08:05 +0000


>>>>> "Jonothan" == Jonothan Farr <jfarr@real.com> writes:

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


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

    Jonothan> Try:

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

Thanks - that worked. 

-- 
Dr. John A.R. Williams
Photonics Research Group
Telecommunications Technology Programme Director
Aston University