From c198ddab2341ad8774cb270f30a515788ff66ecb Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 21 Oct 2023 17:31:52 +0000 Subject: regression test for roff.c rev. 1.397: recursive delayed expansion of escape sequences in macro arguments --- regress/roff/args/Makefile | 4 ++-- regress/roff/args/esc.in | 8 ++++++++ regress/roff/args/esc.out_ascii | 9 +++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 regress/roff/args/esc.in create mode 100644 regress/roff/args/esc.out_ascii (limited to 'regress/roff/args') diff --git a/regress/roff/args/Makefile b/regress/roff/args/Makefile index 3d756c97..c1f0901e 100644 --- a/regress/roff/args/Makefile +++ b/regress/roff/args/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.4 2014/07/06 19:08:57 schwarze Exp $ +# $OpenBSD: Makefile,v 1.5 2023/10/21 17:28:01 schwarze Exp $ -REGRESS_TARGETS = roff man mdoc +REGRESS_TARGETS = roff man mdoc esc LINT_TARGETS = roff man mdoc .include diff --git a/regress/roff/args/esc.in b/regress/roff/args/esc.in new file mode 100644 index 00000000..20951dcd --- /dev/null +++ b/regress/roff/args/esc.in @@ -0,0 +1,8 @@ +.\" $OpenBSD: esc.in,v 1.1 2023/10/21 17:28:01 schwarze Exp $ +.TH ARGS-ESC 1 "October 21, 2023" +.SH NAME +args-esc - delayed escape sequence expansion in macro arguments +.SH DESCRIPTION +.ds inner content +.ds outer \\*[inner] +.B \\*[outer] diff --git a/regress/roff/args/esc.out_ascii b/regress/roff/args/esc.out_ascii new file mode 100644 index 00000000..41c4cc99 --- /dev/null +++ b/regress/roff/args/esc.out_ascii @@ -0,0 +1,9 @@ +ARGS-ESC(1) General Commands Manual ARGS-ESC(1) + +NNAAMMEE + args-esc - delayed escape sequence expansion in macro arguments + +DDEESSCCRRIIPPTTIIOONN + ccoonntteenntt + +OpenBSD October 21, 2023 ARGS-ESC(1) -- cgit