[Tutor] why is unicode converted file double spaced?

Marc Tompkins marc.tompkins at gmail.com
Tue Apr 7 19:32:57 CEST 2009


On Tue, Apr 7, 2009 at 10:26 AM, Pirritano, Matthew <MPirritano at ochca.com>wrote:

>  Thanks Marc,
>
>
>
> But I think that got rid of all of my carriage returns. Everything on just
> one line now.
>
Sorry!  My bad!  Try this instead:

> for outLine in inp:
>     outp.write(outLine.strip() + '\n')
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090407/d6270fb8/attachment.htm>


More information about the Tutor mailing list