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
This commit is contained in:
Daniel Stenberg 2022-01-05 16:35:34 +01:00
parent e39421cef3
commit 996221fc6c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 {