diff --git a/src/document.cpp b/src/document.cpp index 6ddfe25..dc631a8 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -94,6 +94,7 @@ void Document::parse() if (tree.front().first == "rss") { + BOOST_LOG_TRIVIAL(debug) << "RSS detected."; parse_rss(tree); } } @@ -179,6 +180,8 @@ string Document::remove_html(string html) const // Replace single newlines with spaces (?<= is lookbehind, ?= is lookahead). html = regex_replace(html, regex{R"((?<=[^\n])\n(?=[^\n]))"}, " "); + BOOST_LOG_TRIVIAL(debug) << "Converted HTML to text."; + return html; } } // namespace mastorss