mirror of
https://github.com/curl/curl.git
synced 2026-05-06 05:57:28 +03:00
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:
parent
121e60b958
commit
abd8f2b78b
1 changed files with 3 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue