From fbe03522ca8195458a6d5fe15d8db18ab9273934 Mon Sep 17 00:00:00 2001 From: betateilchen Date: Wed, 28 Jan 2015 13:36:51 +0000 Subject: [PATCH] 55_GDS.pm: minor improvement git-svn-id: https://svn.fhem.de/fhem/trunk@7758 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/55_GDS.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/55_GDS.pm b/fhem/FHEM/55_GDS.pm index f60c326db..249249385 100644 --- a/fhem/FHEM/55_GDS.pm +++ b/fhem/FHEM/55_GDS.pm @@ -1,4 +1,4 @@ -# $Id$ +# $Id: 55_GDS.pm 7699 2015-01-24 19:53:30Z betateilchen $ #################################################################################################### # # 55_GDS.pm @@ -1170,9 +1170,10 @@ sub gdsHeadlines($;$) { $sep = (defined($sep)) ? $sep : '|'; my $count = ReadingsVal($d,'a_count',0); for (my $i = 0; $i < $count; $i++) { - $text .= utf8ToLatin1(ReadingsVal('gds','a_'.$i.'_headline','')).$sep; + $text .= $sep if $i; + $text .= ReadingsVal('gds','a_'.$i.'_headline','') } - return utf8ToLatin1($text); + return $text; } 1;