diff --git a/src/document.cpp b/src/document.cpp index 03cde8f..7bdbb07 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -1,5 +1,5 @@ /* This file is part of mastorss. - * Copyright © 2019, 2020 tastytea + * Copyright © 2019-2021 tastytea * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -238,6 +238,7 @@ string Document::remove_html(string html) const html = mastodonpp::unescape_html(html); // Decode HTML entities. html = regex_replace(html, regex{"

"}, "\n\n"); + html = regex_replace(html, regex{"
"}, "\n"); const list re_list{regex{R"()"}, // CDATA end.