[vdr] Removing newline characters from EPG entries.
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Tue Jan 2 10:47:24 CET 2007
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
More information about the vdr
mailing list