|
|
regression: do not show unset or empty tags - stagit-gopher - static git page generator for gopher |
|
|
 |
git clone git://git.codemadness.org/stagit-gopher (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit f939dd0767be55df7983178f51c85d3e55054056 |
|
|
 |
parent 08a0a0113440d0f80b5f68c596c50e3188b8f9e1 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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 *tag) |
|
|
|
} |
|
|
|
if (ci->summary) { |
|
|
|
fputs("<title type=\"text\">", fp); |
|
|
|
- if (tag) { |
|
|
|
+ if (tag && tag[0]) { |
|
|
|
fputs("[", fp); |
|
|
|
xmlencode(fp, tag, strlen(tag)); |
|
|
|
fputs("] ", fp); |
|