From e695a65df9d5a8ee7d5af705c4789e44fbcc0b60 Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Sun, 10 May 2026 19:33:01 +0500 Subject: Config support --- src/RSS.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/RSS.hpp') 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 #include #include -#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 Entries = {}; RSS(std::string url); + void print(); private: std::string request(); -- cgit v1.3