regression: do not show unset or empty tags - stagit-gopher - A git gopher frontend. (mirror)
(HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit f939dd0767be55df7983178f51c85d3e55054056
(DIR) parent 08a0a0113440d0f80b5f68c596c50e3188b8f9e1
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
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(-)
---
(DIR) 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);