mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
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:
@@ -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)
|
||||
{
|
||||
std::string tmp = name;
|
||||
std::replace(tmp.begin(), tmp.end(), '\\n', ' ');
|
||||
std::replace(tmp.begin(), tmp.end(), '\n', ' ');
|
||||
std::replace(tmp.begin(), tmp.end(), '\t', ' ');
|
||||
|
||||
|
@@ -390,8 +390,8 @@ void EpgPlus::ChannelEventEntry::paint(bool pisSelected, bool toggleColor)
|
||||
std::string shortepg = shortEpgData.info1;
|
||||
if(!shortepg.empty())
|
||||
{
|
||||
shortepg = str_replace("\n", " ", shortepg);
|
||||
shortepg = str_replace("\\n", " ", shortepg);
|
||||
shortepg = str_replace("\n", " ", shortepg);
|
||||
shortepg = str_replace("\t", " ", shortepg);
|
||||
}
|
||||
this->footer->paintEventDetails(this->channelEvent.description, ret ? shortepg : "");
|
||||
|
Reference in New Issue
Block a user