mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Don't indent entry children beyond 4.
This commit is contained in:
parent
a62e830ced
commit
17842c2a79
1 changed files with 4 additions and 1 deletions
5
html.c
5
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, "<div class=\"snac-children\">\n");
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue