summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-21 07:49:39 +0100
committerdefault <nobody@localhost>2023-12-21 07:49:39 +0100
commitd9ca841cc99431a614f2aafe8a7563d0536727d8 (patch)
treed83ab8ffaa63140842ce7ed3e63ac790c0a2e764 /html.c
parentadcfc212c0561a972ff30c9d860d32874eb88d27 (diff)
Don't wrap the content in <p></p>; just add a final <p>.
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/html.c b/html.c
index 616d6bf..6c65d3b 100644
--- a/html.c
+++ b/html.c
@@ -1438,10 +1438,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
c = xs_replace_i(c, "<br><br>", "<p>");
- if (!xs_startswith(c, "<p>")) {
- xs *s1 = c;
- c = xs_fmt("<p>%s</p>", s1);
- }
+ c = xs_str_cat(c, "<p>");
/* replace the :shortnames: */
c = replace_shortnames(c, xs_dict_get(msg, "tag"), 2);