From ff9971487e60c2e6e8f7858745eea6520b1c0aa5 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 5 May 2017 02:06:19 +0000 Subject: Move handling of the roff(7) .ft request from the man(7) modules to the new roff(7) modules. As a side effect, mdoc(7) now handles .ft, too. Of course, do not use that. --- regress/roff/ft/Makefile | 6 ++++-- regress/roff/ft/badargs-mdoc.in | 18 ++++++++++++++++++ regress/roff/ft/badargs-mdoc.out_ascii | 9 +++++++++ regress/roff/ft/badargs-mdoc.out_lint | 2 ++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 regress/roff/ft/badargs-mdoc.in create mode 100644 regress/roff/ft/badargs-mdoc.out_ascii create mode 100644 regress/roff/ft/badargs-mdoc.out_lint (limited to 'regress/roff') diff --git a/regress/roff/ft/Makefile b/regress/roff/ft/Makefile index f57fe72b..5d2accbb 100644 --- a/regress/roff/ft/Makefile +++ b/regress/roff/ft/Makefile @@ -1,6 +1,8 @@ # $OpenBSD: Makefile,v 1.1 2014/07/05 12:33:54 schwarze Exp $ -REGRESS_TARGETS = badargs -LINT_TARGETS = badargs +REGRESS_TARGETS = badargs badargs-mdoc +LINT_TARGETS = badargs badargs-mdoc + +SKIP_TMAN = badargs .include diff --git a/regress/roff/ft/badargs-mdoc.in b/regress/roff/ft/badargs-mdoc.in new file mode 100644 index 00000000..06f463b5 --- /dev/null +++ b/regress/roff/ft/badargs-mdoc.in @@ -0,0 +1,18 @@ +.Dd May 5, 2017 +.Dt FT-BADARGS-MDOC 1 +.Os OpenBSD +.Sh NAME +.Nm ft-badargs-mdoc +.Nd font request with bad arguments +.Sh DESCRIPTION +default font +.ft B +bold +.ft foo +still bold +.ft I bogus +italic +.ft P +back to bold +.ft +back to italic diff --git a/regress/roff/ft/badargs-mdoc.out_ascii b/regress/roff/ft/badargs-mdoc.out_ascii new file mode 100644 index 00000000..bd4eaa09 --- /dev/null +++ b/regress/roff/ft/badargs-mdoc.out_ascii @@ -0,0 +1,9 @@ +FT-BADARGS-MDOC(1) General Commands Manual FT-BADARGS-MDOC(1) + +NNAAMMEE + fftt--bbaaddaarrggss--mmddoocc - font request with bad arguments + +DDEESSCCRRIIPPTTIIOONN + default font bboolldd ssttiillll bboolldd _i_t_a_l_i_c bbaacckk ttoo bboolldd _b_a_c_k _t_o _i_t_a_l_i_c + +OpenBSD May 5, 2017 OpenBSD diff --git a/regress/roff/ft/badargs-mdoc.out_lint b/regress/roff/ft/badargs-mdoc.out_lint new file mode 100644 index 00000000..d5f526e6 --- /dev/null +++ b/regress/roff/ft/badargs-mdoc.out_lint @@ -0,0 +1,2 @@ +mandoc: badargs-mdoc.in:13:7: ERROR: skipping excess arguments: ft ... bogus +mandoc: badargs-mdoc.in:11:2: WARNING: unknown font, skipping request: ft foo -- cgit