From 0e676b15ed7c6e1fbd073e8d17da8dd9401cfa48 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 15 Apr 2009 01:05:51 +0200 Subject: [PATCH] pn nicer display of existing notes Signed-off-by: Joerg Jaspert --- dak/process_new.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' -- 2.39.5