summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-11-02 19:36:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-11-02 19:36:25 -0700
commit5132f1ef330d3eb2a0bf87037035beaeaf19d3f3 (patch)
tree3ee9c94df338ff152c2fe137dcf87b78f2fcced1 /test/command
parent051fa7d5741bc731b78b2dc1696ddbaaa54139ff (diff)
T.P.RoffChar: escape `-` as `\-`.
The groff_man (7)` man page indicates that `-` characters will be treated as typographic hyphens and are not appropriate for cases where the output should be copy-pasteable as an ASCII hyphen-minus character. (E.g. in command line options.) However, until a recent update groff man did not actually do this; it treated `-` and `\-` the same. With the new update (1.23.0) the two are distinguished (see https://lwn.net/Articles/947941/ for background), so now it is important that pandoc escape `-`. This reverts ee60ba5252360d2efbf9cf30197236a21a15a924. That change was motivated by a problem with backslash-escaping `-` in a filename for .PSPIC. That's simply a separate issue; we shouldn't do the normal escapes in such a context. It has been addressed in the previous commit.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5620.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/command/5620.md b/test/command/5620.md
index 371a64864..64e931d21 100644
--- a/test/command/5620.md
+++ b/test/command/5620.md
@@ -4,6 +4,6 @@
: Write output to *OUTFILE* instead of `stdout`(3)
^D
.TP
-\f[CR]-o\f[R], \f[CR]--output=\f[R]\f[I]OUTFILE\f[R]
+\f[CR]\-o\f[R], \f[CR]\-\-output=\f[R]\f[I]OUTFILE\f[R]
Write output to \f[I]OUTFILE\f[R] instead of \f[CR]stdout\f[R](3)
```