]> err.no Git - dak/commitdiff
pn
authorJoerg Jaspert <joerg@debian.org>
Tue, 14 Apr 2009 23:05:51 +0000 (01:05 +0200)
committerJoerg Jaspert <joerg@debian.org>
Tue, 14 Apr 2009 23:05:51 +0000 (01:05 +0200)
nicer display of existing notes

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index 7a7b6fdbfa8b6e58592ae2bb40a92f33342d1ad6..6be42d3340c84124150b8db89a7562373d491601 100755 (executable)
@@ -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'