commit 57c9f4b

default  ·  2024-09-15 06:25:12 +0000 UTC
parent 16a1b20
Skip ugly line breaks at the beginning of a post's content.
1 files changed,  +4, -0
M html.c
M html.c
+4, -0
 1@@ -1726,6 +1726,10 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
 2             content = "";
 3         }
 4 
 5+        /* skip ugly line breaks at the beginning */
 6+        while (xs_startswith(content, "<br>"))
 7+            content += 4;
 8+
 9         xs *c = sanitize(content);
10 
11         /* do some tweaks to the content */