]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gen.pl: terminate "example" sections better
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 Jan 2022 15:35:34 +0000 (16:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 Jan 2022 21:44:52 +0000 (22:44 +0100)
If the example (section that is prefixed with spaces) ends the
description gen.pl would previously miss to output the terminating .fi

Closes #8228

docs/cmdline-opts/gen.pl

index 3d15f1b545f55409c9d4a7af5843a99983d64ba7..a7d013ae8bf976e1ba8fa266413a067d0995240b 100755 (executable)
@@ -6,7 +6,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -114,6 +114,9 @@ sub printdesc {
         $d =~ s/(\s*)\'/$1\\(aq/;
         print $d;
     }
+    if($exam) {
+        print ".fi\n"; # fill-in
+    }
 }
 
 sub seealso {