Skip to content

Commit bb4db0e

Browse files
authored
Fix backslash in manpage
According to documentation, to include a literal backslash into the manpage, one has to use `\e`. For instance, FreeBSD mandoc complains otherwise: % mandoc -Tlint -Wunsupp < ddgr.1 mandoc: <stdin>:234:2: UNSUPP: unsupported escape sequence: \! mandoc: <stdin>:248:2: UNSUPP: unsupported escape sequence: \!
1 parent a533056 commit bb4db0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ddgr.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ reverse video prompts
186186
.TP
187187
Note that
188188
.IP - 2
189-
Bright colors (implemented as \\x1b[90m - \\x1b[97m) may not be available in all color-capable terminal emulators;
189+
Bright colors (implemented as \ex1b[90m - \ex1b[97m) may not be available in all color-capable terminal emulators;
190190
.IP - 2
191191
Some terminal emulators draw bold text in bright colors instead;
192192
.IP - 2
@@ -231,7 +231,7 @@ DuckDuckGo \fBhello world\fR:
231231
.EX
232232
.IP
233233
.B ddgr !w hello world
234-
.B ddgr \\\\!w hello world // bash-specific, need to escape ! on bash
234+
.B ddgr \e!w hello world // bash-specific, need to escape ! on bash
235235
.EE
236236
.PP
237237
.IP "" 4
@@ -245,7 +245,7 @@ Bangs work at the omniprompt too. To look up bangs, visit https://duckduckgo.com
245245
.B alias bang='ddgr --gb --np'
246246
.IP
247247
.B bang !w hello world
248-
.B bang \\\\!w hello world // bash-specific, need to escape ! on bash
248+
.B bang \e!w hello world // bash-specific, need to escape ! on bash
249249
.EE
250250
.PP
251251
.IP 5. 4

0 commit comments

Comments
 (0)