Overprinting

Thierry Lalinne thierry.lalinne at chello.be
Sat Feb 5 06:24:43 EST 2000


Hello,

I use an LPD daemon on my NT 4 box to receive spool jobs coming from an IBM
AS/400.
I need to parse the incoming file and generate a report in RTF.
Unfortunately, the AS/400 uses overprinting on some lines, I get CR without
LF. What I would like to do is to use a little Python to get rid of the CR
and merge the lines together.

Example:
Bla Bla Bla..........Bla Bla Bla<CR>............12345..........<CR><LF>
Which after processing would give me:
Bla Bla Bla...12345.....Bla Bla Bla<CR><LF>

I would like to have some advises on how to do it efficiently.

Regards
---
Thierry





More information about the Python-list mailing list