managen: reset text mode at end of table marker

It previously mostly ignored it which lead to bad format after a table
has ended with "##".

Closes #18139
This commit is contained in:
Daniel Stenberg 2025-08-01 18:03:36 +02:00
parent 2bad773b30
commit 18e00c8ed0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 15 additions and 12 deletions

View File

@ -409,7 +409,9 @@ sub render {
if($tablemode) {
# end of table
push @desc, ".RE\n.IP\n" if($manpage);
push @desc, "\n" if(!$manpage);
$tablemode = 0;
$level = 0;
}
$header = 1;
next;

View File

@ -224,23 +224,24 @@ DESCRIPTION
Permit only this protocol (ignoring the list already
permitted), though subject to later modification by subsequent
entries in the comma separated list. For example: --proto
-ftps uses the default protocols, but disables ftps
entries in the comma separated list.
--proto -all,https,+http only enables http and https
For example: --proto -ftps uses the default protocols, but
disables ftps
--proto =http,https also only enables http and https
--proto -all,https,+http only enables http and https
Unknown and disabled protocols produce a warning. This allows
scripts to safely rely on being able to disable potentially
dangerous protocols, without relying upon support for that
protocol being built into curl to avoid an error.
--proto =http,https also only enables http and https
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.
Unknown and disabled protocols produce a warning. This allows
scripts to safely rely on being able to disable potentially
dangerous protocols, without relying upon support for that
protocol being built into curl to avoid an error.
If --proto is provided several times, the last set value is used.
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.
Example:
curl --proto =http,https,sftp https://example.com