diff options
| author | 2024-09-15 08:25:12 +0200 | |
|---|---|---|
| committer | 2024-09-15 08:25:12 +0200 | |
| commit | 57c9f4b8e92d6d3f14b362d9942b524606cf0b58 (patch) | |
| tree | 795fbff74ba27f4599708a97817255e79e4845e5 | |
| parent | Updated TODO. (diff) | |
| download | snac2-57c9f4b8e92d6d3f14b362d9942b524606cf0b58.tar.gz snac2-57c9f4b8e92d6d3f14b362d9942b524606cf0b58.tar.xz snac2-57c9f4b8e92d6d3f14b362d9942b524606cf0b58.zip | |
Skip ugly line breaks at the beginning of a post's content.
| -rw-r--r-- | html.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1726,6 +1726,10 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 1726 | content = ""; | 1726 | content = ""; |
| 1727 | } | 1727 | } |
| 1728 | 1728 | ||
| 1729 | /* skip ugly line breaks at the beginning */ | ||
| 1730 | while (xs_startswith(content, "<br>")) | ||
| 1731 | content += 4; | ||
| 1732 | |||
| 1729 | xs *c = sanitize(content); | 1733 | xs *c = sanitize(content); |
| 1730 | 1734 | ||
| 1731 | /* do some tweaks to the content */ | 1735 | /* do some tweaks to the content */ |