diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-07 14:02:19 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-07 14:02:19 +0200 |
commit | 1e897cc3a8d781cdfe1c952d1870f5d954116e1d (patch) | |
tree | 0a1602e56db679041cd4a1852835947722ff0a82 /eit.c | |
parent | a1a248ae421ba1be57572d62de842745bc3dee88 (diff) | |
download | vdr-1e897cc3a8d781cdfe1c952d1870f5d954116e1d.tar.gz vdr-1e897cc3a8d781cdfe1c952d1870f5d954116e1d.tar.bz2 |
Fixed handling 'newline' characters in EPG texts
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -16,7 +16,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: eit.c 1.24 2001/09/22 13:07:21 kls Exp $ + * $Id: eit.c 1.25 2001/10/07 13:42:48 kls Exp $ ***************************************************************************/ #include "eit.h" @@ -337,6 +337,12 @@ void cEventInfo::Dump(FILE *f, const char *Prefix) const void cEventInfo::FixEpgBugs(void) { + // VDR can't usefully handle newline characters in the EPG data, so let's + // always convert them to blanks (independent of the setting of EPGBugfixLevel): + strreplace(pTitle, '\n', ' '); + strreplace(pSubtitle, '\n', ' '); + strreplace(pExtendedDescription, '\n', ' '); + if (Setup.EPGBugfixLevel == 0) return; |