regression: do not show unset or empty tags

This commit is contained in:
Hiltjo Posthuma 2020-07-20 14:15:12 +02:00
parent d80a163acd
commit f05e6b0fcb

View file

@ -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);