diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-02-14 23:05:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-02-14 23:05:09 +0000 |
commit | 86938eca444c41fd3c17fd103abc17d32359aaf3 (patch) | |
tree | 71adf8fc00b41bc41686480972be60e6ee23c076 /regress/usr.bin/mandoc | |
parent | e2be0ba7c9df299a07f5c821550501503fb3372f (diff) |
Implement the roff(7) .as request (append to user-defined string).
Missing feature found by jca@ in ratpoison(1).
The ratpoison(1) manual still doesn't work because it uses .shift
and .while, too (apparently, ratpoison is so complex that it
needs a Turing-complete language to even format its manual :-).
Written at Christchurch International Airport.
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r-- | regress/usr.bin/mandoc/roff/ds/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/roff/ds/append.in | 17 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/roff/ds/append.out_ascii | 12 |
3 files changed, 31 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/ds/Makefile b/regress/usr.bin/mandoc/roff/ds/Makefile index 1d0dd711842..79ac4eee1f9 100644 --- a/regress/usr.bin/mandoc/roff/ds/Makefile +++ b/regress/usr.bin/mandoc/roff/ds/Makefile @@ -1,5 +1,5 @@ -# $OpenBSD: Makefile,v 1.2 2011/11/17 16:28:46 schwarze Exp $ +# $OpenBSD: Makefile,v 1.3 2014/02/14 23:05:08 schwarze Exp $ -REGRESS_TARGETS=quoting +REGRESS_TARGETS = quoting append .include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/roff/ds/append.in b/regress/usr.bin/mandoc/roff/ds/append.in new file mode 100644 index 00000000000..6efa46bacca --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ds/append.in @@ -0,0 +1,17 @@ +.Dd February 4, 2014 +.Dt DS-APPEND 1 +.Os OpenBSD +.Sh NAME +.Nm ds-append +.Nd appending to user-defined strings +.Sh DESCRIPTION +.ds foo first part +first part: \*[foo] +.br +.as foo " second part +with second part: \*[foo] +.br +.as foo " third part +with third part: \*[foo] +.br +end of test document diff --git a/regress/usr.bin/mandoc/roff/ds/append.out_ascii b/regress/usr.bin/mandoc/roff/ds/append.out_ascii new file mode 100644 index 00000000000..d186f7672c0 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ds/append.out_ascii @@ -0,0 +1,12 @@ +DS-APPEND(1) OpenBSD Reference Manual DS-APPEND(1) + +NNAAMMEE + ddss--aappppeenndd - appending to user-defined strings + +DDEESSCCRRIIPPTTIIOONN + first part: first part + with second part: first part second part + with third part: first part second part third part + end of test document + +OpenBSD February 4, 2014 OpenBSD |