Skip ugly line breaks at the beginning of a post's content.

This commit is contained in:
default 2024-09-15 08:25:12 +02:00
parent 16a1b207b1
commit 57c9f4b8e9

4
html.c
View file

@ -1726,6 +1726,10 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
content = "";
}
/* skip ugly line breaks at the beginning */
while (xs_startswith(content, "<br>"))
content += 4;
xs *c = sanitize(content);
/* do some tweaks to the content */