gen.pl: replace all single quotes with aq

- this prevents man from using a unicode sequence for them
- which then allows search to work properly

Closes #11645
This commit is contained in:
Daniel Stenberg 2023-08-09 17:58:34 +02:00
parent 121e60b958
commit abd8f2b78b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -118,8 +118,8 @@ sub printdesc {
}
# quote "bare" minuses in the output
$d =~ s/([^\\])-/$1\\-/g;
# handle single quotes first on the line
$d =~ s/^(\s*)\'/$1\\(aq/;
# replace single quotes
$d =~ s/\'/\\(aq/g;
# handle double quotes first on the line
$d =~ s/^(\s*)\"/$1\\(dq/;
print $d;
@ -450,6 +450,7 @@ sub single {
foreach my $e (@examples) {
$e =~ s!\$URL!https://example.com!g;
$e =~ s/\-/\\-/g;
$e =~ s/\'/\\(aq/g;
print " curl $e\n";
}
print ".fi\n";