diff options
author | W. Trevor King <wking@drexel.edu> | 2009-06-30 11:00:46 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-06-30 11:00:46 -0400 |
commit | db4adfd8be31c253239a54b5ae8a90af46bded7b (patch) | |
tree | 143d2f0a7c9ab9f7a2d0aa3551823d1b5ce722c3 | |
parent | 97aeb18b20f901950da0355471fdc17055f3f4a8 (diff) | |
download | bugseverywhere-db4adfd8be31c253239a54b5ae8a90af46bded7b.tar.gz |
Remove blank line from bug.xml() output when bug has no comments.
-rw-r--r-- | libbe/bug.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index 4f297f9..3bd0566 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -288,8 +288,8 @@ class Bug(settings_object.SavedSettingsObject): if show_comments == True: comout = self.comment_root.xml_thread(auto_name_map=True, bug_shortname=shortname) - ret += comout+'\n' - + if len(comout) > 0: + ret += comout+'\n' ret += '</bug>' return ret |