From: Joerg Jaspert Date: Tue, 14 Apr 2009 23:05:51 +0000 (+0200) Subject: pn X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e676b15ed7c6e1fbd073e8d17da8dd9401cfa48;p=dak pn nicer display of existing notes Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_new.py b/dak/process_new.py index 7a7b6fdb..6be42d33 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -469,7 +469,9 @@ def edit_note(note): # Write the current data to a temporary file (fd, temp_filename) = utils.temp_filename() temp_file = os.fdopen(fd, 'w') - temp_file.write(note) + if len(note) > 0: + for line in note: + temp_file.write(line) temp_file.close() editor = os.environ.get("EDITOR","vi") answer = 'E'