summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-01-05 16:35:34 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-01-05 22:44:52 +0100
commit996221fc6c7871e8ebfa4206f65e6fe2afd22f4d (patch)
tree9f24753f15bacc92ebe09cf63965f43890a0700f
parente39421cef31f13a19b6bef5c644978e0c54e4e16 (diff)
downloadcurl-996221fc6c7871e8ebfa4206f65e6fe2afd22f4d.tar.gz
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
-rwxr-xr-xdocs/cmdline-opts/gen.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl
index 3d15f1b54..a7d013ae8 100755
--- a/docs/cmdline-opts/gen.pl
+++ b/docs/cmdline-opts/gen.pl
@@ -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 {