2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

allow spacesin templateDef info

git-svn-id: https://svn.fhem.de/fhem/trunk@3517 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-07-28 09:39:58 +00:00
parent ca9672a9c7
commit 8f137fc193

View File

@ -776,11 +776,14 @@ sub HMinfo_templateDef(@){#####################################################
}
# get description if marked wir ""
if ($desc =~ m/^"/){
my $cnt = 0;
foreach (@regs){
$desc .= " ".(shift @regs);
$desc .= " ".$_;
$cnt++;
last if ($desc =~ m/"$/);
}
$desc =~ s/"//g;
splice @regs,0,$cnt;
}
return "$name already defined, delete it first" if($tpl{$name});