unify text-replacements in EPG

Origin commit data
------------------
Branch: ni/coolstream
Commit: 49d2cb3abf
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-10-07 (Mon, 07 Oct 2024)

Origin message was:
------------------
- unify text-replacements in EPG

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2024-10-07 20:24:49 +02:00
parent d35ca8abba
commit 374dfaf2a7
2 changed files with 2 additions and 1 deletions

View File

@@ -517,6 +517,7 @@ void SIevent::setName(const std::string &lang, const std::string &name)
void SIevent::setName(unsigned int lang, const std::string &name) void SIevent::setName(unsigned int lang, const std::string &name)
{ {
std::string tmp = name; std::string tmp = name;
std::replace(tmp.begin(), tmp.end(), '\\n', ' ');
std::replace(tmp.begin(), tmp.end(), '\n', ' '); std::replace(tmp.begin(), tmp.end(), '\n', ' ');
std::replace(tmp.begin(), tmp.end(), '\t', ' '); std::replace(tmp.begin(), tmp.end(), '\t', ' ');

View File

@@ -390,8 +390,8 @@ void EpgPlus::ChannelEventEntry::paint(bool pisSelected, bool toggleColor)
std::string shortepg = shortEpgData.info1; std::string shortepg = shortEpgData.info1;
if(!shortepg.empty()) if(!shortepg.empty())
{ {
shortepg = str_replace("\n", " ", shortepg);
shortepg = str_replace("\\n", " ", shortepg); shortepg = str_replace("\\n", " ", shortepg);
shortepg = str_replace("\n", " ", shortepg);
shortepg = str_replace("\t", " ", shortepg); shortepg = str_replace("\t", " ", shortepg);
} }
this->footer->paintEventDetails(this->channelEvent.description, ret ? shortepg : ""); this->footer->paintEventDetails(this->channelEvent.description, ret ? shortepg : "");