diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-11-02 19:36:25 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-11-02 19:36:25 -0700 |
| commit | 5132f1ef330d3eb2a0bf87037035beaeaf19d3f3 (patch) | |
| tree | 3ee9c94df338ff152c2fe137dcf87b78f2fcced1 /test/writer.ms | |
| parent | 051fa7d5741bc731b78b2dc1696ddbaaa54139ff (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/writer.ms')
| -rw-r--r-- | test/writer.ms | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/writer.ms b/test/writer.ms index f6a0ac468..38530829d 100644 --- a/test/writer.ms +++ b/test/writer.ms @@ -134,7 +134,7 @@ Here\[cq]s a regular paragraph. In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. -Because a hard-wrapped line in the middle of a paragraph looked like a list +Because a hard\-wrapped line in the middle of a paragraph looked like a list item. .PP Here\[cq]s one with a bullet. @@ -149,7 +149,7 @@ Block Quotes .pdfhref O 1 "Block Quotes" .pdfhref M "block-quotes" .LP -E-mail style: +E\-mail style: .QS .LP This is a block quote. @@ -197,7 +197,7 @@ Code: .IP .nf \f[C] ----- (should be four hyphens) +\-\-\-\- (should be four hyphens) sub status { print \[dq]working\[dq]; @@ -605,7 +605,7 @@ Code block: .IP .nf \f[C] -<!-- Comment --> +<!\-\- Comment \-\-> \f[] .fi .LP @@ -695,7 +695,7 @@ LaTeX .IP \[bu] 3 @223@ .IP \[bu] 3 -@p@-Tree +@p@\-Tree .IP \[bu] 3 Here\[cq]s some display math: .EQ @@ -765,7 +765,7 @@ Left paren: ( .PP Right paren: ) .PP -Greater-than: > +Greater\-than: > .PP Hash: # .PP @@ -775,7 +775,7 @@ Bang: ! .PP Plus: + .PP -Minus: - +Minus: \- .HLINE .SH 1 Links @@ -925,7 +925,7 @@ In a list? .IP \[bu] 3 It should. .LP -An e-mail address: \c +An e\-mail address: \c .pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \ -- "nobody\[at]nowhere.net" \& @@ -937,7 +937,7 @@ Blockquoted: \c \& .QE .LP -Auto-links should not occur here: \f[CR]<http://example.com/>\f[R] +Auto\-links should not occur here: \f[CR]<http://example.com/>\f[R] .IP .nf \f[C] |
