From 586a426cedc62893d857f54b9b3e588289f78f0c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 25 Jun 2009 13:30:23 -0400 Subject: [PATCH] Remove blank line from tag's output if no tags exist --- becommands/tag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/becommands/tag.py b/becommands/tag.py index 2394284..5a18a7c 100644 --- a/becommands/tag.py +++ b/becommands/tag.py @@ -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: -- 2.26.2