From 996221fc6c7871e8ebfa4206f65e6fe2afd22f4d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 5 Jan 2022 16:35:34 +0100 Subject: [PATCH] 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 --- docs/cmdline-opts/gen.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.47.3