diff options
Diffstat (limited to 'regress/roff/rn')
-rw-r--r-- | regress/roff/rn/Makefile | 5 | ||||
-rw-r--r-- | regress/roff/rn/tab.in | 28 | ||||
-rw-r--r-- | regress/roff/rn/tab.out_ascii | 15 | ||||
-rw-r--r-- | regress/roff/rn/tab.out_lint | 2 |
4 files changed, 48 insertions, 2 deletions
diff --git a/regress/roff/rn/Makefile b/regress/roff/rn/Makefile index 87ef7fe1..8d87c4f1 100644 --- a/regress/roff/rn/Makefile +++ b/regress/roff/rn/Makefile @@ -1,5 +1,6 @@ -# $OpenBSD: Makefile,v 1.10 2017/03/07 20:00:02 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2019/02/06 20:54:28 schwarze Exp $ -REGRESS_TARGETS = append +REGRESS_TARGETS = append tab +LINT_TARGETS = tab .include <bsd.regress.mk> diff --git a/regress/roff/rn/tab.in b/regress/roff/rn/tab.in new file mode 100644 index 00000000..558b1f42 --- /dev/null +++ b/regress/roff/rn/tab.in @@ -0,0 +1,28 @@ +.\" $OpenBSD: tab.in,v 1.1 2019/02/06 20:54:28 schwarze Exp $ +.Dd $Mdocdate: February 6 2019 $ +.Dt RN-TAB 1 +.Os +.Sh NAME +.Nm rn-tab +.Nd tab characters in macro renaming requests +.Sh DESCRIPTION +.de test1 +testval +.. +trying to rename with a tab between the names: +.rn test1 test2 +.br +calling the macro with the old name: +.test1 +.br +calling the macro with the new name: +.test2 +.Pp +trying to rename with a tab after the names: +.rn test1 test2 ignored +.br +calling the macro with the old name: +.test1 +.br +calling the macro with the new name: +.test2 diff --git a/regress/roff/rn/tab.out_ascii b/regress/roff/rn/tab.out_ascii new file mode 100644 index 00000000..6f00c8c1 --- /dev/null +++ b/regress/roff/rn/tab.out_ascii @@ -0,0 +1,15 @@ +RN-TAB(1) General Commands Manual RN-TAB(1) + +NNAAMMEE + rrnn--ttaabb - tab characters in macro renaming requests + +DDEESSCCRRIIPPTTIIOONN + trying to rename with a tab between the names: + calling the macro with the old name: testval + calling the macro with the new name: + + trying to rename with a tab after the names: + calling the macro with the old name: + calling the macro with the new name: testval + +OpenBSD February 6, 2019 OpenBSD diff --git a/regress/roff/rn/tab.out_lint b/regress/roff/rn/tab.out_lint new file mode 100644 index 00000000..50998895 --- /dev/null +++ b/regress/roff/rn/tab.out_lint @@ -0,0 +1,2 @@ +mandoc: tab.in:19:2: ERROR: skipping unknown macro: .test2 +mandoc: tab.in:25:2: ERROR: skipping unknown macro: .test1 |