fix epg newline forÖR channels

This commit is contained in:
Jacek Jendrzej
2024-09-05 15:17:58 +02:00
parent 929c5a40fb
commit 35692a6152
3 changed files with 11 additions and 0 deletions

View File

@@ -2765,6 +2765,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

@@ -878,6 +878,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);