gen.pl: improve example output format

Treat consecutive lines that start with a space to be "examples". They
are output enclosed by .nf and .fi

Updated form.d to use this new fanciness

Closes #8016
This commit is contained in:
Daniel Stenberg 2021-11-15 14:47:46 +01:00
parent 3bf54f90f3
commit d1828b470f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 16 additions and 10 deletions

View file

@ -40,6 +40,9 @@ correct markup that shows both short and long version.
Text written within `*asterisks*` will get shown using italics. Text within
two `**asterisks**` will get shown using bold.
Text that is prefixed with a space will be treated like an "example" and will
be output in monospace.
## Header and footer
`page-header` is the file that will be output before the generated options