mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Don't wrap the content in <p></p>; just add a final <p>.
This commit is contained in:
parent
adcfc212c0
commit
d9ca841cc9
1 changed files with 1 additions and 4 deletions
5
html.c
5
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>");
|
c = xs_replace_i(c, "<br><br>", "<p>");
|
||||||
|
|
||||||
if (!xs_startswith(c, "<p>")) {
|
c = xs_str_cat(c, "<p>");
|
||||||
xs *s1 = c;
|
|
||||||
c = xs_fmt("<p>%s</p>", s1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* replace the :shortnames: */
|
/* replace the :shortnames: */
|
||||||
c = replace_shortnames(c, xs_dict_get(msg, "tag"), 2);
|
c = replace_shortnames(c, xs_dict_get(msg, "tag"), 2);
|
||||||
|
|
Loading…
Reference in a new issue