mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
docs/cmdline-opts/gen.pl: encode leading single and double quotes
As "(aq" and "(dq" to prevent them from implying a meaning in the nroff output. This removes the need for using \& escapes in the .d files' description parts. Closes #9352
This commit is contained in:
parent
91948a9eaf
commit
567693196a
@ -113,7 +113,9 @@ sub printdesc {
|
||||
$d =~ s/( |\\fI|^)--/$1\\-\\-/g;
|
||||
$d =~ s/([ -]|\\fI|^)-/$1\\-/g;
|
||||
# handle single quotes first on the line
|
||||
$d =~ s/(\s*)\'/$1\\(aq/;
|
||||
$d =~ s/^(\s*)\'/$1\\(aq/;
|
||||
# handle double quotes first on the line
|
||||
$d =~ s/^(\s*)\"/$1\\(dq/;
|
||||
print $d;
|
||||
}
|
||||
if($exam) {
|
||||
|
Loading…
Reference in New Issue
Block a user