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:
parent
cf6a4c54d9
commit
cc6792c7af
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user