summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-06 14:21:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-06 14:21:00 +0100
commite5499ed6504a6fd374cfa25878d2b5f09db8346e (patch)
treef77285ba51bd12719fbab6641a463590c5928ae7 /interface.c
parent9cb56dfea4c9eaee963df967e5d46c2926d984d9 (diff)
downloadvdr-e5499ed6504a6fd374cfa25878d2b5f09db8346e.tar.gz
vdr-e5499ed6504a6fd374cfa25878d2b5f09db8346e.tar.bz2
The character '|' in description texts of EPG records is now interpreted as a newline character
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 804747ae..7466a9ae 100644
--- a/interface.c
+++ b/interface.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.c 1.60 2002/11/01 10:50:38 kls Exp $
+ * $Id: interface.c 1.61 2002/12/06 14:13:16 kls Exp $
*/
#include "interface.h"
@@ -157,6 +157,8 @@ char *cInterface::WrapText(const char *Text, int Width, int *Height)
t[strlen(t) - 1] = 0; // skips trailing newlines
for (char *p = t; *p; ) {
+ if (*p == '|')
+ *p = '\n';
if (*p == '\n') {
Lines++;
w = 0;