summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2022-05-20 13:06:28 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2022-05-20 13:06:28 +0000
commit0d1aa6a8d2aef15931b51cb7a7dce8a59ed8b59f (patch)
treea79e70528f20a067bd40a569d58b83eb5287732d /usr.bin
parentd7efbf2e95f52249ecf367a38787a2ad17af4a50 (diff)
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 'usr.bin')
-rw-r--r--usr.bin/mandoc/roff_escape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/roff_escape.c b/usr.bin/mandoc/roff_escape.c
index 4571873d152..0780cce2a0f 100644
--- a/usr.bin/mandoc/roff_escape.c
+++ b/usr.bin/mandoc/roff_escape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff_escape.c,v 1.1 2022/05/19 15:17:51 schwarze Exp $ */
+/* $OpenBSD: roff_escape.c,v 1.2 2022/05/20 13:06:26 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2020, 2022
* Ingo Schwarze <schwarze@openbsd.org>
@@ -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 '{':