Don't indent entry children beyond 4.

This commit is contained in:
default 2022-10-07 10:12:14 +02:00
parent a62e830ced
commit 17842c2a79

3
html.c
View file

@ -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;
if (level < 4)
s = xs_str_cat(s, "<div class=\"snac-children\">\n");
else
s = xs_str_cat(s, "<div>\n");
if (left > 3)
s = xs_str_cat(s, "<details><summary>...</summary>\n");