From: Daniel Stenberg Date: Wed, 5 Jan 2022 15:35:34 +0000 (+0100) Subject: gen.pl: terminate "example" sections better X-Git-Tag: curl-7_82_0~264 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=996221fc6c7871e8ebfa4206f65e6fe2afd22f4d;p=thirdparty%2Fcurl.git gen.pl: terminate "example" sections better If the example (section that is prefixed with spaces) ends the description gen.pl would previously miss to output the terminating .fi Closes #8228 --- diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 3d15f1b545..a7d013ae8b 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2021, Daniel Stenberg, , et al. +# Copyright (C) 1998 - 2022, Daniel Stenberg, , 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 {