summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
Diffstat (limited to 'stagit.c')
-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);