summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2022-09-27 10:20:33 +0200
committerGravatar default2022-09-27 10:20:33 +0200
commit48a50770f46f160d8cbc852fdb90ea0c6c74cdd7 (patch)
treecfebe9305575252a0ce6dd3192dab1ab00b3802f /html.c
parentUpdated dependencies. (diff)
downloadsnac2-48a50770f46f160d8cbc852fdb90ea0c6c74cdd7.tar.gz
snac2-48a50770f46f160d8cbc852fdb90ea0c6c74cdd7.tar.xz
snac2-48a50770f46f160d8cbc852fdb90ea0c6c74cdd7.zip
Use xs_replace_i() in some places.
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 de9060c..532c033 100644
--- a/html.c
+++ b/html.c
@@ -63,10 +63,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
63 s = xs_str_cat(s, "</pre>"); 63 s = xs_str_cat(s, "</pre>");
64 64
65 /* some beauty fixes */ 65 /* some beauty fixes */
66 if (xs_str_in(s, "</blockquote><br>") != -1) { 66 s = xs_replace_i(s, "</blockquote><br>", "</blockquote>");
67 xs *os = s;
68 s = xs_replace(os, "</blockquote><br>", "</blockquote>");
69 }
70 67
71 *f_content = s; 68 *f_content = s;
72 69