提交 0e676b15 编写于 作者: J Joerg Jaspert

pn

nicer display of existing notes
Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 562c828d
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册