-# $OpenBSD: Makefile,v 1.20 2022/05/01 16:18:59 schwarze Exp $
+# $OpenBSD: Makefile,v 1.21 2022/05/20 13:06:27 schwarze Exp $
REGRESS_TARGETS = one two multi comment
-REGRESS_TARGETS += B bs_man bs_mdoc c c_man E1 e f h hneg l O1 o p w z
+REGRESS_TARGETS += B bs_man bs_mdoc c c_man E1 e f h hneg l O1 o p r w z
REGRESS_TARGETS += ignore invalid unsupp
HTML_TARGETS = f
-LINT_TARGETS = comment B h l O1 w ignore invalid unsupp
+LINT_TARGETS = comment B h l O1 r w ignore invalid unsupp
-# mandoc defect:
+# mandoc defects:
# - \h with a negative argument replaces output characters
# instead of overstriking them
+# - \r does not return to the previous output line
-SKIP_GROFF = hneg
+SKIP_GROFF = hneg r
.include <bsd.regress.mk>
--- /dev/null
+.\" $OpenBSD: r.in,v 1.1 2022/05/20 13:06:27 schwarze Exp $
+.Dd $Mdocdate: May 20 2022 $
+.Dt ESC-R 1
+.Os
+.Sh NAME
+.Nm esc-r
+.Nd the roff reverse line feed escape sequence
+.Sh DESCRIPTION
+.Bd -literal
+first line
+before\rafter
+last line
+.Ed
--- /dev/null
+ESC-R(1) General Commands Manual ESC-R(1)
+
+N\bNA\bAM\bME\bE
+ e\bes\bsc\bc-\b-r\br - the roff reverse line feed escape sequence
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+ first line
+ beforeafter
+ last line
+
+OpenBSD May 20, 2022 OpenBSD
--- /dev/null
+mandoc: r.in:11:7: UNSUPP: unsupported escape sequence: \r
-.\" $OpenBSD: roff.7,v 1.97 2022/01/01 03:59:22 jsg Exp $
+.\" $OpenBSD: roff.7,v 1.98 2022/05/20 13:06:27 schwarze Exp $
.\"
+.\" Copyright (c) 2010-2019, 2022 Ingo Schwarze <schwarze@openbsd.org>
.\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
-.\" Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 1 2022 $
+.Dd $Mdocdate: May 20 2022 $
.Dt ROFF 7
.Os
.Sh NAME
Set number register; ignored by
.Xr mandoc 1 .
.It Ic \er
-Move up by one line; ignored by
-.Xr mandoc 1 .
+Reverse line feed: move up by one output line.
+Currently unsupported.
.It Ic \eS\(aq Ns Ar number Ns Ic \(aq
Slant output; ignored by
.Xr mandoc 1 .
-/* $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>
case '!':
case '?':
+ case 'r':
rval = ESCAPE_UNSUPP;
goto out;
case '^':
case 'a':
case 'd':
- case 'r':
case 't':
case 'u':
case '{':