mirror of
https://github.com/curl/curl.git
synced 2026-05-30 17:37:28 +03: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue