From db4adfd8be31c253239a54b5ae8a90af46bded7b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 30 Jun 2009 11:00:46 -0400 Subject: [PATCH] Remove blank line from bug.xml() output when bug has no comments. --- libbe/bug.py | 4 ++-- 1 file 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 += '' return ret -- 2.26.2