mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
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:
@@ -2766,6 +2766,10 @@ void CChannelList::processTextToArray(std::string text, int screening) // UTF-8
|
|||||||
std::string aktLine = "";
|
std::string aktLine = "";
|
||||||
std::string aktWord = "";
|
std::string aktWord = "";
|
||||||
int aktWidth = 0;
|
int aktWidth = 0;
|
||||||
|
|
||||||
|
if(!text.empty())
|
||||||
|
text = str_replace("\\n", "\n", text);
|
||||||
|
|
||||||
text += ' ';
|
text += ' ';
|
||||||
const char *text_= text.c_str();
|
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 aktLine = "";
|
||||||
std::string aktWord = "";
|
std::string aktWord = "";
|
||||||
int aktWidth = 0;
|
int aktWidth = 0;
|
||||||
|
|
||||||
|
if(!text.empty())
|
||||||
|
text = str_replace("\\n", "\n", text);
|
||||||
|
|
||||||
text += ' ';
|
text += ' ';
|
||||||
char* text_= (char*) text.c_str();
|
char* text_= (char*) text.c_str();
|
||||||
|
|
||||||
|
@@ -880,6 +880,9 @@ void CEventList::paintDescription(int index)
|
|||||||
else
|
else
|
||||||
infozone_text = g_Locale->getText(LOCALE_EPGLIST_NOEVENTS);
|
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->setText(infozone_text, CTextBox::TOP, g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_EVENT]);
|
||||||
infozone->doPaintBg(false);
|
infozone->doPaintBg(false);
|
||||||
infozone->doPaintTextBoxBg(true);
|
infozone->doPaintTextBoxBg(true);
|
||||||
|
Reference in New Issue
Block a user