Better newline reduction (hopefully)
This commit is contained in:
parent
54fdf2c154
commit
a140a6b5b3
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.3.2
|
||||
VERSION 0.3.4
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -147,8 +147,8 @@ std::vector<string> 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 \\n]"), "\n\n"); // remove space between newlines
|
||||
str = std::regex_replace(str, std::regex("[\\n\\r ]{3,}"), "\n"); // remove excess newlines
|
||||
str = std::regex_replace(str, std::regex("[\\r\\n] [\\r\\n]"), "\n\n"); // remove space between newlines
|
||||
str = std::regex_replace(str, std::regex("[\\r\\n]{3,}"), "\n"); // remove excess newlines
|
||||
|
||||
for (const string &hashtag : watchwords)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user