mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 13:13:24 +00:00
improve asciidoc markup
This commit is contained in:
parent
fe3f1fdef1
commit
7a83df1bc9
@ -463,16 +463,14 @@ sub usage_str {
|
||||
}
|
||||
|
||||
if ($format eq 'asciidoc') {
|
||||
$res .= "[horizontal]\n";
|
||||
$res .= "`$display_name`:: `$type` ";
|
||||
$res .= "`$display_name` `$type` ";
|
||||
if (defined(my $dv = $phash->{default})) {
|
||||
$res .= "(default=`$dv`)";
|
||||
}
|
||||
$res .= "\n+\n";
|
||||
$res .= "::\n\n";
|
||||
$res .= Text::Wrap::wrap('', '', ($descr)) . "\n";
|
||||
|
||||
if (my $req = $phash->{requires}) {
|
||||
#if (my $req = 'test') {
|
||||
my $tmp .= ref($req) ? join(', ', @$req) : $req;
|
||||
$res .= "+\nNOTE: Requires option(s): `$tmp`\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user