man: escape all hyphens in flag names
Apparently, if we don't do this, some roff renderers with use a special Unicode hyphen. That in turn makes searching a man page not work as one would expect. Fixes #3140
This commit is contained in:
@@ -5576,9 +5576,9 @@ don't need preprocessing. For example, given the following shell script,
|
||||
pdftotext "$1" -
|
||||
.EE
|
||||
.sp
|
||||
then it is possible to use \fB\-\-pre\fP \fIpre-pdftotext\fP \fB--pre-glob
|
||||
'\fP\fI*.pdf\fP\fB'\fP to make it so ripgrep only executes the
|
||||
\fIpre-pdftotext\fP command on files with a \fI.pdf\fP extension.
|
||||
then it is possible to use \fB\-\-pre\fP \fIpre-pdftotext\fP
|
||||
\fB\-\-pre\-glob\fP '\fI*.pdf\fP' to make it so ripgrep only executes
|
||||
the \fIpre-pdftotext\fP command on files with a \fI.pdf\fP extension.
|
||||
.sp
|
||||
Multiple \flag{pre-glob} flags may be used. Globbing rules match
|
||||
\fBgitignore\fP globs. Precede a glob with a \fB!\fP to exclude it.
|
||||
|
||||
Reference in New Issue
Block a user