diff --git a/src/parse.cpp b/src/parse.cpp index de8ed4d..34691ac 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -147,7 +147,8 @@ std::vector parse_website(const string &profile, const string &xml) str = std::regex_replace(str, reindyfuckup, ""); str = std::regex_replace(str, redaclosing, ""); str = std::regex_replace(str, reggboclosing, ""); - str = std::regex_replace(str, std::regex("[\\n\\r ]{3,}"), "\n"); // remove excess newlines + str = std::regex_replace(str, std::regex("\\n \\n]"), "\n\n"); // remove space between newlines + str = std::regex_replace(str, std::regex("[\\n\\r ]{3,}"), "\n"); // remove excess newlines for (const string &hashtag : watchwords) {