aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2020-07-20 14:15:12 +0200
committerHiltjo Posthuma <[email protected]>2020-07-20 14:15:12 +0200
commitf05e6b0fcb3b874180970d06ebcde05fb5aea470 (patch)
tree954c37b9c4f360bcc7be8427278224e3474803b7
parentd80a163acd47df2bd9ab145be6b249814aa9eceb (diff)
downloadstagit-f05e6b0fcb3b874180970d06ebcde05fb5aea470.tar.gz
stagit-f05e6b0fcb3b874180970d06ebcde05fb5aea470.zip
regression: do not show unset or empty tags
-rw-r--r--stagit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index ff81b53..0377ad8 100644
--- a/stagit.c
+++ b/stagit.c
@@ -797,7 +797,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
}
if (ci->summary) {
fputs("<title type=\"text\">", fp);
- if (tag) {
+ if (tag && tag[0]) {
fputs("[", fp);
xmlencode(fp, tag, strlen(tag));
fputs("] ", fp);