Rweth wrote: > I am using nntplib to download archived xml messages from our > internal newsgroup. This is working fine except the download > of files to the connected server, has extra embedded lines in > them (all over the place), from the > s.body(id,afile) # body method
The 'linebreaks' are probably '\r\n' pairs, so you could do a buf.replace('\r\n', '\n') to convert all such pairs to single LFs (buf being the buffer or string that holds the text with 'linebreaks'). Cheers, -- Klaus Alexander Seistrup http://klaus.seistrup.dk/ -- http://mail.python.org/mailman/listinfo/python-list