04-03-2014, 08:35 PM
You probably need to get rid of the newline character... it should be easy to see it just add
print plain_text,
after the "for plain_text in f:" and you will notice that there is the extra new line...
you can get rid of it using several ways, for instance:
- plain_text = plain_text[:-1]
- plain_text = plain_text.rstrip ()
(add one of this after the for plain_text in f: loop)
should work, but didn't test it
print plain_text,
after the "for plain_text in f:" and you will notice that there is the extra new line...
you can get rid of it using several ways, for instance:
- plain_text = plain_text[:-1]
- plain_text = plain_text.rstrip ()
(add one of this after the for plain_text in f: loop)
should work, but didn't test it