From e7a093abad0998937d749de7db0c59325ba9ee54 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 26 Apr 2021 18:06:10 -0400 Subject: Don't output "0 replies" at all --- html.c | 1 + stylesheet.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/html.c b/html.c index 25565c6..f8f8539 100644 --- a/html.c +++ b/html.c @@ -464,6 +464,7 @@ static uint32_t threadCount(struct List thread) { } static int htmlReplies(FILE *file, uint32_t replies) { + if (!replies) return 0; const char *template = Q( [replies] repl[ies] ); diff --git a/stylesheet.c b/stylesheet.c index 236dea0..237bc96 100644 --- a/stylesheet.c +++ b/stylesheet.c @@ -27,9 +27,6 @@ const char Stylesheet[] = Q( main.index time, main.index data.replies { display: block; } - main.index data.replies[value="0"] { - display: none; - } article.message header { background-color: gainsboro; -- cgit 1.4.1