mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
98_exportdevice.pm: fix newline from version command
git-svn-id: https://svn.fhem.de/fhem/trunk@12046 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
958dde10aa
commit
c4ed71b230
@ -39,7 +39,7 @@ sub CommandExportdevice($$) {
|
||||
if ( $mname ne $defs{$dev}{TYPE} ) {
|
||||
$mname = $defs{$dev}{TYPE};
|
||||
my $ver = fhem "version $defs{$dev}{TYPE}";
|
||||
$ver =~ s/\n\n+/\n# /g;
|
||||
$ver =~ s/\n+/\n# /g;
|
||||
$ver =~ s/^/# /g;
|
||||
$str .= "\n\n# TYPE: $defs{$dev}{TYPE}\n$ver\n\n";
|
||||
}
|
||||
@ -92,7 +92,7 @@ sub CommandExportdevice($$) {
|
||||
return
|
||||
$return
|
||||
. AttrVal( "global", "version", "fhem.pl:?/?" )
|
||||
. "\n# on "
|
||||
. "\n# at "
|
||||
. TimeNow() . "\n#"
|
||||
. $str
|
||||
if ( $str ne "" );
|
||||
|
Loading…
Reference in New Issue
Block a user