From 91f0f16f2181a2ac79aecf7026518b21cf15770f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 14 Jun 2017 22:51:25 +0000 Subject: Naive implementation of the roff(7) .po (page offset) request. This clearly works when .po is called on the top level, but might not be sophisticated enough if people call .po inside indentation-changing contexts, but i haven't seen that in manual pages (yet :). --- regress/roff/po/Makefile | 5 +++++ regress/roff/po/basic-mdoc.in | 20 ++++++++++++++++++++ regress/roff/po/basic-mdoc.out_ascii | 17 +++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 regress/roff/po/Makefile create mode 100644 regress/roff/po/basic-mdoc.in create mode 100644 regress/roff/po/basic-mdoc.out_ascii (limited to 'regress/roff/po') diff --git a/regress/roff/po/Makefile b/regress/roff/po/Makefile new file mode 100644 index 00000000..dabc7c9e --- /dev/null +++ b/regress/roff/po/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1 2017/05/08 15:33:43 schwarze Exp $ + +REGRESS_TARGETS = basic-mdoc + +.include diff --git a/regress/roff/po/basic-mdoc.in b/regress/roff/po/basic-mdoc.in new file mode 100644 index 00000000..082be68c --- /dev/null +++ b/regress/roff/po/basic-mdoc.in @@ -0,0 +1,20 @@ +.Dd June 14, 2017 +.Dt PO-BASIC-MDOC 1 +.Os OpenBSD +.Sh NAME +.Nm po-basic-mdoc +.Nd the roff page offset request +.Sh DESCRIPTION +initial text +.Pp +.po -2n +shifted left +.Pp +.po +5n +shifted right +.Pp +.po XXX +shifted left +.Pp +.po 0 +final text diff --git a/regress/roff/po/basic-mdoc.out_ascii b/regress/roff/po/basic-mdoc.out_ascii new file mode 100644 index 00000000..0b35c2bd --- /dev/null +++ b/regress/roff/po/basic-mdoc.out_ascii @@ -0,0 +1,17 @@ +PO-BASIC-MDOC(1) General Commands Manual PO-BASIC-MDOC(1) + +NNAAMMEE + ppoo--bbaassiicc--mmddoocc - the roff page offset request + +DDEESSCCRRIIPPTTIIOONN + initial text + + shifted left + + shifted right + + shifted left + + final text + +OpenBSD June 14, 2017 OpenBSD -- cgit