regression: do not show unset or empty tags - stagit-gopher - A git gopher fron… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit f939dd0767be55df7983178f51c85d3e55054056 | |
parent 08a0a0113440d0f80b5f68c596c50e3188b8f9e1 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Mon, 20 Jul 2020 14:16:11 +0200 | |
regression: do not show unset or empty tags | |
Diffstat: | |
M stagit-gopher.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/stagit-gopher.c b/stagit-gopher.c | |
@@ -881,7 +881,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char… | |
} | |
if (ci->summary) { | |
fputs("<title type=\"text\">", fp); | |
- if (tag) { | |
+ if (tag && tag[0]) { | |
fputs("[", fp); | |
xmlencode(fp, tag, strlen(tag)); | |
fputs("] ", fp); |