version: fix missing newline when $param is used (Forum: #47155)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10464 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2016-01-11 20:06:10 +00:00
parent 430baef3dd
commit 80357a330d
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- feature: version: version command shows also internal helper modules that
are loaded (HttpUtils, Blocking, ...)
- feature: 70_VIERA: Using non blocking for status update. - feature: 70_VIERA: Using non blocking for status update.
Added color button for remoteControl and SVG layout Added color button for remoteControl and SVG layout
Some new SVG icons for remoteControl layout Some new SVG icons for remoteControl layout

View File

@ -54,8 +54,9 @@ CommandVersion($$)
@ret = sort {version_sortModules($a, $b)} @ret; @ret = sort {version_sortModules($a, $b)} @ret;
return "no loaded modules found that match: $param" if($param && !@ret); return "no loaded modules found that match: $param" if($param && !@ret);
return sprintf("%-".$max."s %s","File","Rev Last Change\n\n"). return sprintf("%-".$max."s %s","File","Rev Last Change\n\n").
join("\n", grep (($_ =~ /^fhem.pl|\d\d_/), @ret)).(!$param ? "\n\n":""). trim(join("\n", grep (($_ =~ /^fhem.pl|\d\d_/), @ret))."\n\n".
join("\n", grep (($_ !~ /^fhem.pl|\d\d_/), @ret)); join("\n", grep (($_ !~ /^fhem.pl|\d\d_/), @ret))
);
} }
##################################### #####################################