fix epg newline forÖR channels

Origin commit data
------------------
Branch: ni/coolstream
Commit: b07bef983f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2024-09-05 (Thu, 05 Sep 2024)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2024-09-05 21:34:45 +02:00
committed by vanhofen
parent 363b223bee
commit 21896d808f
3 changed files with 11 additions and 0 deletions

View File

@@ -2766,6 +2766,10 @@ void CChannelList::processTextToArray(std::string text, int screening) // UTF-8
std::string aktLine = "";
std::string aktWord = "";
int aktWidth = 0;
if(!text.empty())
text = str_replace("\\n", "\n", text);
text += ' ';
const char *text_= text.c_str();

View File

@@ -191,6 +191,10 @@ void CEpgData::processTextToArray(std::string text, int screening, bool has_cove
std::string aktLine = "";
std::string aktWord = "";
int aktWidth = 0;
if(!text.empty())
text = str_replace("\\n", "\n", text);
text += ' ';
char* text_= (char*) text.c_str();

View File

@@ -880,6 +880,9 @@ void CEventList::paintDescription(int index)
else
infozone_text = g_Locale->getText(LOCALE_EPGLIST_NOEVENTS);
if(!infozone_text.empty())
infozone_text = str_replace("\\n", "\n", infozone_text);
infozone->setText(infozone_text, CTextBox::TOP, g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_EVENT]);
infozone->doPaintBg(false);
infozone->doPaintTextBoxBg(true);