From 17842c2a797a3091e937025e06e17a14e2a1a4e6 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 7 Oct 2022 10:12:14 +0200 Subject: [PATCH] Don't indent entry children beyond 4. --- html.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html.c b/html.c index ed5ff30..4637a4c 100644 --- a/html.c +++ b/html.c @@ -704,7 +704,10 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, xs_set *seen, int local, i int left = xs_list_len(children); char *id; - s = xs_str_cat(s, "
\n"); + if (level < 4) + s = xs_str_cat(s, "
\n"); + else + s = xs_str_cat(s, "
\n"); if (left > 3) s = xs_str_cat(s, "
...\n");