From: Dietmar Maurer Date: Tue, 29 Dec 2015 17:43:12 +0000 (+0100) Subject: improve asciidoc markup X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=7a83df1bc9f29af39cead15ab0e25dd95e37f2f2 improve asciidoc markup --- diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index c6e7436..9d9ea56 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -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"; }