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

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

git-svn-id: https://svn.fhem.de/fhem/trunk@10464 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2016-01-11 20:06:10 +00:00
parent f14b3ec3ad
commit 86534b0786
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.
# 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.
Added color button for remoteControl and SVG layout
Some new SVG icons for remoteControl layout

View File

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