5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-08 01:17:37 +03:00

print defaulttxt as sprintf parameter

instead of having it verbatim in the format string.
This enables us to have '%' in the defaulttext without getting errors

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-06-06 11:03:56 +02:00 committed by Thomas Lamprecht
parent cf6a4c54d9
commit cc6792c7af

View File

@ -538,7 +538,7 @@ my $get_property_description = sub {
die "unknown style '$style'";
}
my $tmp = sprintf " %-10s %s$defaulttxt\n", $display_name, "$type_text";
my $tmp = sprintf " %-10s %s%s\n", $display_name, "$type_text", "$defaulttxt";
my $indend = " ";
$res .= Text::Wrap::wrap('', $indend, ($tmp));