From: Daniel Stenberg Date: Fri, 1 Aug 2025 16:03:36 +0000 (+0200) Subject: managen: reset text mode at end of table marker X-Git-Tag: curl-8_16_0~281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18e00c8ed052485b2ae4e3006ced6ec4e98ee5d1;p=thirdparty%2Fcurl.git 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 --- diff --git a/scripts/managen b/scripts/managen index e4fccdc065..d565246b87 100755 --- a/scripts/managen +++ b/scripts/managen @@ -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; diff --git a/tests/data/test1706 b/tests/data/test1706 index 20c97c7d1d..ca121c446a 100644 --- a/tests/data/test1706 +++ b/tests/data/test1706 @@ -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