mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
fix epg newline forÖR channels
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user