Fix weird character at the front of the line...

This commit is contained in:
MinchinWeb 2014-12-17 10:03:21 -07:00 committed by Manuel Ebert
parent 425ecf791d
commit d17558f3c6

View file

@ -126,7 +126,7 @@ def get_text_from_editor(config, template=""):
with codecs.open(tmpfile, 'w', "utf-8") as f: with codecs.open(tmpfile, 'w', "utf-8") as f:
if template: if template:
f.write(template) f.write(template)
subprocess.call(config['editor'].split() + [tmpfile]) subprocess.call(config['editor'].split() + [tmpfile])
with codecs.open(tmpfile, "r", "utf-8") as f: with codecs.open(tmpfile, "r", "utf-8") as f:
raw = f.read() raw = f.read()
os.close(filehandle); os.close(filehandle);