]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
managen: reset text mode at end of table marker
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Aug 2025 16:03:36 +0000 (18:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Aug 2025 21:24:32 +0000 (23:24 +0200)
It previously mostly ignored it which lead to bad format after a table
has ended with "##".

Closes #18139

scripts/managen
tests/data/test1706

index e4fccdc065d3a0f0e9dfcadfa50309f823d614e3..d565246b87e0806fa769631ace93b29765bafb53 100755 (executable)
@@ -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;
index 20c97c7d1d479b8597c61c2a4832c2f43255f89c..ca121c446af60bf4b2a6084b53598be126e8b63c 100644 (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