From 2ad4b46551281eff50e25921316db48c26d6104c Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 12 Jul 2021 23:35:42 +0200 Subject: [PATCH] Replace
with newline. --- src/document.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.