aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbe/bug.py4
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