File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ sub manpageify {
68
68
my $l ;
69
69
if ($optlong {$k } ne " " ) {
70
70
# both short + long
71
- $l = " \\ fI-" .$optlong {$k }." , - -$k \\ fP" ;
71
+ $l = " \\ fI-" .$optlong {$k }." , \\ - \\ -$k \\ fP" ;
72
72
}
73
73
else {
74
74
# only long
75
- $l = " \\ fI- -$k \\ fP" ;
75
+ $l = " \\ fI\\ - \\ -$k \\ fP" ;
76
76
}
77
77
return $l ;
78
78
}
@@ -117,8 +117,7 @@ sub printdesc {
117
117
}
118
118
}
119
119
# quote "bare" minuses in the output
120
- $d =~ s / ( |\\ fI|^)--/ $1 \\ -\\ -/ g ;
121
- $d =~ s / ([ -]|\\ fI|^)-/ $1 \\ -/ g ;
120
+ $d =~ s / ([^\\ ])-/ $1 \\ -/ g ;
122
121
# handle single quotes first on the line
123
122
$d =~ s / ^(\s *)\' / $1 \\ (aq/ ;
124
123
# handle double quotes first on the line
@@ -450,6 +449,7 @@ sub single {
450
449
print " \n Example$s :\n .nf\n " ;
451
450
foreach my $e (@examples ) {
452
451
$e =~ s !\$ URL! https://example.com! g ;
452
+ $e =~ s /\- / \\ -/ g ;
453
453
print " curl $e \n " ;
454
454
}
455
455
print " .fi\n " ;
You can’t perform that action at this time.
0 commit comments