diff options
Diffstat (limited to 'src/RSS.hpp')
| -rw-r--r-- | src/RSS.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/RSS.hpp b/src/RSS.hpp index 1394842..1ff2bc7 100644 --- a/src/RSS.hpp +++ b/src/RSS.hpp @@ -12,7 +12,6 @@ #include <utility> #include <variant> #include <vector> -#include "DateUtils.hpp" class XML_leaf { public: @@ -106,8 +105,9 @@ class XML_leaf { } static std::string trimSpaces(std::string raw) { - auto outp = std::regex_replace(raw, std::regex(" +"), " "); + auto outp = std::regex_replace(raw, std::regex("\n"), ""); outp = std::regex_replace(outp, std::regex("> <"), "><"); + outp = std::regex_replace(outp, std::regex(" +"), " "); return outp; } @@ -214,6 +214,7 @@ class RSS { std::vector<RSS_Entry> Entries = {}; RSS(std::string url); + void print(); private: std::string request(); |
