managen: render better manpage references/links

- When an option name is used in text, this script no longer outputs the
  short plus long version in the manpage output. It makes the text much
  more readable.

  This always showing both verions was previously done primarily to make
  sure roffit would linkify it correctly, but since roffit 0.17 it
  should link both long or short names correctly.

- When managen outputs generic text about options at the end of the
  description it now highlights them properly so that they too get
  linkified correctly in the HTML version. For consistency.

Closes #18580
This commit is contained in:
Daniel Stenberg 2025-09-17 11:53:33 +02:00
parent 0a27a506b1
commit dbe4e28d57
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 34 additions and 29 deletions

View file

@ -224,9 +224,9 @@ End with a quote
hello
.fi
This option is global and does not need to be specified for each use of --next.
This option is global and does not need to be specified for each use of \fI\-\-next\fP.
Providing --fakeitreal multiple times has no extra effect.
Providing \fI\-\-fakeitreal\fP multiple times has no extra effect.
Disable it again with \-\-no-fakeitreal.
Example:
@ -265,14 +265,14 @@ relying upon support for that protocol being built into curl to avoid an error.
This option can be used multiple times, in which case the effect is the same
as concatenating the protocols into one instance of the option.
If --proto is provided several times, the last set value is used.
If \fI\-\-proto\fP is provided several times, the last set value is used.
Example:
.nf
curl --proto =http,https,sftp https://example.com
.fi
See also \fI-v, \-\-fakeitreal\fP and \fI\-\-proto\-default\fP.
See also \fI\-\-fakeitreal\fP and \fI\-\-proto\-default\fP.
.SH PROXY PROTOCOL PREFIXES
The proxy string may be specified with a protocol:// prefix to specify
alternative proxy protocols.