commit d9ca841

default  ·  2023-12-21 06:49:39 +0000 UTC
parent adcfc21
Don't wrap the content in <p></p>; just add a final <p>.
1 files changed,  +1, -4
M html.c
M html.c
+1, -4
 1@@ -1438,10 +1438,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
 2 
 3         c = xs_replace_i(c, "<br><br>", "<p>");
 4 
 5-        if (!xs_startswith(c, "<p>")) {
 6-            xs *s1 = c;
 7-            c = xs_fmt("<p>%s</p>", s1);
 8-        }
 9+        c = xs_str_cat(c, "<p>");
10 
11         /* replace the :shortnames: */
12         c = replace_shortnames(c, xs_dict_get(msg, "tag"), 2);