Skip to content

Commit

Permalink
fix epg newline forÖR channels
Browse files Browse the repository at this point in the history
  • Loading branch information
satbaby authored and Frankenstone committed Sep 5, 2024
1 parent 9a37a4c commit 536d116
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/channellist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2740,6 +2740,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();

Expand Down
4 changes: 4 additions & 0 deletions src/gui/epgview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,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();

Expand Down
3 changes: 3 additions & 0 deletions src/gui/eventlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,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);
Expand Down

0 comments on commit 536d116

Please sign in to comment.