aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_escape.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-05-20 13:09:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-05-20 13:09:13 +0000
commit47b136859c01b58c485871ddf294a613d823ece4 (patch)
tree15253a0d22c64d7f4da157b9704d773452ce88d6 /roff_escape.c
parent88ba4d2363be835b2d0de5d552baadb9952ff64c (diff)
downloadmandoc-47b136859c01b58c485871ddf294a613d823ece4.tar.gz
mandoc-47b136859c01b58c485871ddf294a613d823ece4.zip
Re-classify the roff(7) \r (reverse line feed) escape sequence
from "ignore" to "unsupported" because when an input file uses it, mandoc(1) is likely to significantly misformat the output, usually showing parts of the output in a different order than the author intended.
Diffstat (limited to 'roff_escape.c')
-rw-r--r--roff_escape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roff_escape.c b/roff_escape.c
index 1b5dc640..fb7b92ed 100644
--- a/roff_escape.c
+++ b/roff_escape.c
@@ -103,6 +103,7 @@ roff_escape(const char *buf, const int ln, const int aesc,
case '!':
case '?':
+ case 'r':
rval = ESCAPE_UNSUPP;
goto out;
@@ -114,7 +115,6 @@ roff_escape(const char *buf, const int ln, const int aesc,
case '^':
case 'a':
case 'd':
- case 'r':
case 't':
case 'u':
case '{':