diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-05-10 19:33:01 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-05-10 19:33:01 +0500 |
| commit | e695a65df9d5a8ee7d5af705c4789e44fbcc0b60 (patch) | |
| tree | b86aaafa8c549f381bd9f76d23174b169b1ce792 /src/RSS.hpp | |
| parent | a14878b4a453f48f3b200481c343a7fc59181b0f (diff) | |
Config support
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(); |
