Removing newline characters from EPG entries.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Carsten Koch wrote:
> Hi,
> 
> I found the following code in epg.c lines 633-636:
> 
>   // VDR can't usefully handle newline characters in the title and shortText of EPG
>   // data, so let's always convert them to blanks (independent of the setting of EPGBugfixLevel):
>   strreplace(title, '\n', ' ');
>   strreplace(shortText, '\n', ' ');
> 
> AFAIK, VDR _can_ handle newlines in the title and shortText,
> as long as they are represented as '|'.
> So I wonder if it would not be an improvement to change
> the above code into
> 
>   // Change newline characters into '|', which will be displayed as newline.
>   strreplace(title, '\n', '|');
>   strreplace(shortText, '\n', '|');

By "VDR can't usefully handle newline characters in the title and shortText" I meant
that the title and short text are always used in a "single line" context.
There's no point in having newlines in there.

Klaus


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux