Any algorithm to preserve whitespaces?

Santosh Kumar sntshkmr60 at gmail.com
Wed Jan 23 04:20:12 EST 2013


I am in a problem.

    words = line.split(' ')

preserve whitespaces but the problem is it writes an additional line
after every line.


And:

    words = line.split()

works as I expect (does not adds addition line after every line) but
does not preserves whitespaces.



More information about the Python-list mailing list