diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-01-05 16:35:34 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-05 16:35:34 +0100 |
commit | 6aaf678630a4124e746fca22b2982cfde3645102 (patch) | |
tree | 6bfe515c53ce06c4c283c3d8dee5fa352ab138d1 | |
parent | 801bd5138ce31aa0d906fa4e2eabfc599d74e793 (diff) | |
download | curl-6aaf678630a4124e746fca22b2982cfde3645102.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
-rwxr-xr-x | docs/cmdline-opts/gen.pl | 5 |
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 { |