changeset 581:99706377c930 trunk

small code cleanup in write_po()
author fschwarz
date Fri, 03 Aug 2012 19:17:50 +0000
parents ea413a4d754b
children 3fd7fb953633
files babel/messages/pofile.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/babel/messages/pofile.py
+++ b/babel/messages/pofile.py
@@ -442,10 +442,8 @@
                 for line in comment_header.splitlines():
                     lines += wraptext(line, width=width,
                                       subsequent_indent='# ')
-                comment_header = u'\n'.join(lines) + u'\n'
-            else:
-                comment_header += u'\n'
-            _write(comment_header)
+                comment_header = u'\n'.join(lines)
+            _write(comment_header + u'\n')
 
         for comment in message.user_comments:
             _write_comment(comment)
Copyright (C) 2012-2017 Edgewall Software