2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-12 08:41:41 +00:00

contrib/zwave_configconvert.pl: fix Help formatting

git-svn-id: https://svn.fhem.de/fhem/trunk@8639 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-05-27 07:50:51 +00:00
parent 683ce464dc
commit 0469da297e

View File

@ -49,7 +49,7 @@ foreach my $file (`find $ARGV[0] -name \*.xml`) {
#$l =~ s/^ *//g;
$l =~ s/ *$//g;
next if($l eq "");
if($l !~ m/>$/ || $l =~ m/^<Help>$/) { $buffer .= " ".$l; next; }
if($l !~ m/>$/ || $l =~ m/^\s*<Help>\s*$/) { $buffer .= " ".$l; next; }
if($buffer && $l =~ m/>$/) { $l = "$buffer $l"; $buffer=""; }
$l =~ s/<!--.*-->//g;
$l =~ s/ *$//g;