mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Skip ugly line breaks at the beginning of a post's content.
This commit is contained in:
parent
16a1b207b1
commit
57c9f4b8e9
1 changed files with 4 additions and 0 deletions
4
html.c
4
html.c
|
@ -1726,6 +1726,10 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
|
||||||
content = "";
|
content = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* skip ugly line breaks at the beginning */
|
||||||
|
while (xs_startswith(content, "<br>"))
|
||||||
|
content += 4;
|
||||||
|
|
||||||
xs *c = sanitize(content);
|
xs *c = sanitize(content);
|
||||||
|
|
||||||
/* do some tweaks to the content */
|
/* do some tweaks to the content */
|
||||||
|
|
Loading…
Reference in a new issue