[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] pn



nicer display of existing notes

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 dak/process_new.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dak/process_new.py b/dak/process_new.py
index 7a7b6fd..6be42d3 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'
-- 
1.5.6.5


Reply to: