Remove blank line from tag's output if no tags exist
authorW. Trevor King <wking@drexel.edu>
Thu, 25 Jun 2009 17:30:23 +0000 (13:30 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 25 Jun 2009 17:30:23 +0000 (13:30 -0400)
becommands/tag.py

index 23942840fa9d0339cda3be3507813837d317a806..5a18a7c4478af001c83614b72c63779559d441df 100644 (file)
@@ -89,7 +89,8 @@ def execute(args, test=False):
                     if tag not in tags:
                         tags.append(tag)
         tags.sort()
-        print '\n'.join(tags)
+        if len(tags) > 0:
+            print '\n'.join(tags)
         return
     bug = bd.bug_from_shortname(args[0])
     if len(args) == 2: