From: Johannes Altmanninger Date: Sun, 6 Feb 2022 06:11:58 +0000 (+0100) Subject: getopt.1.adoc: render synopsis rules on separate lines X-Git-Tag: v2.38-rc2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55bcc40952001c189f1aec865d30ad3f9536fe81;p=thirdparty%2Futil-linux.git getopt.1.adoc: render synopsis rules on separate lines AsciiDoc ignores single line breaks, so the synopsis of *getopt* _variant1_ *getopt* _variant2_ will render as one line in the manpage. Fix this by adding a blank line in between two rules, like we do elsewhere. This means that the manpage also has blank lines. *getopt* _variant1_ *getopt* _variant2_ Alternative solution: we could avoid the blank lines like below, but that'd be inconsistent with our other manpages. *getopt* _variant1_ + *getopt* _variant2_ + or, equivalently, use the verse[*] directive [verse] *getopt* _variant1_ *getopt* _variant2_ [*]: https://docs.asciidoctor.org/asciidoc/latest/blocks/verses/ Signed-off-by: Johannes Altmanninger --- diff --git a/misc-utils/getopt.1.adoc b/misc-utils/getopt.1.adoc index 434d069269..50fff4a3f7 100644 --- a/misc-utils/getopt.1.adoc +++ b/misc-utils/getopt.1.adoc @@ -14,7 +14,9 @@ getopt - parse command options (enhanced) == SYNOPSIS *getopt* _optstring_ _parameters_ + *getopt* [options] [*--*] _optstring_ _parameters_ + *getopt* [options] *-o*|*--options* _optstring_ [options] [*--*] _parameters_ == DESCRIPTION