diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-03-30 19:47:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-03-30 19:47:33 +0000 |
commit | b76244f073822c05c753ba252f1e583229c93b83 (patch) | |
tree | ea6562f764227c470dd93ff4e0fc157e208c4214 /regress/usr.bin/mandoc/roff | |
parent | 1847b12ef133c3b57ce9f884e039cb40e0e38323 (diff) |
Implement the roff(7) .ll (line length) request.
Found by naddy@ in the textproc/enchant(1) port.
Of course, do not use this in new manuals.
Diffstat (limited to 'regress/usr.bin/mandoc/roff')
-rw-r--r-- | regress/usr.bin/mandoc/roff/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/roff/ll/Makefile | 7 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/roff/ll/basic.in | 25 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/roff/ll/basic.out_ascii | 23 |
4 files changed, 57 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/Makefile b/regress/usr.bin/mandoc/roff/Makefile index 7a1fd52181e..900c6ec99c0 100644 --- a/regress/usr.bin/mandoc/roff/Makefile +++ b/regress/usr.bin/mandoc/roff/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.14 2013/10/03 22:04:07 schwarze Exp $ +# $OpenBSD: Makefile,v 1.15 2014/03/30 19:47:32 schwarze Exp $ SUBDIR = args cond esc string -SUBDIR += br cc de ds it na nr ps rm sp +SUBDIR += br cc de ds it ll na nr ps rm sp ascii groff groff-clean obj-clean tman: _SUBDIRUSE diff --git a/regress/usr.bin/mandoc/roff/ll/Makefile b/regress/usr.bin/mandoc/roff/ll/Makefile new file mode 100644 index 00000000000..c8c99b9c840 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ll/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2014/03/30 19:47:32 schwarze Exp $ + +REGRESS_TARGETS = basic + +SKIP_TMAN = + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/roff/ll/basic.in b/regress/usr.bin/mandoc/roff/ll/basic.in new file mode 100644 index 00000000000..15c7efaf933 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ll/basic.in @@ -0,0 +1,25 @@ +.Dd February 5, 2014 +.Dt LL-BASIC 1 +.Os OpenBSD +.Sh NAME +.Nm ll-basic +.Nd changing the line length +.Sh DESCRIPTION +This is a longer text to demonstrate the default line length. +In ASCII mode, it is expected to break at column 78. +.Pp +.ll 38n +This is another long text to demonstrate shorter lines. +In ASCII mode, it is expected to break at column 38. +.Pp +.ll +This is a longer text after switching back to the default line length. +In ASCII mode, it is expected to break at column 78. +.Pp +.ll 200n +This is another long text to demonstrate longer lines. +In ASCII mode, it is not expected to break at all. +.Pp +.ll +This is a longer text after switching back to the default line length. +In ASCII mode, it is expected to break at column 78. diff --git a/regress/usr.bin/mandoc/roff/ll/basic.out_ascii b/regress/usr.bin/mandoc/roff/ll/basic.out_ascii new file mode 100644 index 00000000000..bbf2a034322 --- /dev/null +++ b/regress/usr.bin/mandoc/roff/ll/basic.out_ascii @@ -0,0 +1,23 @@ +LL-BASIC(1) OpenBSD Reference Manual LL-BASIC(1) + +NNAAMMEE + llll--bbaassiicc - changing the line length + +DDEESSCCRRIIPPTTIIOONN + This is a longer text to demonstrate the default line length. In ASCII + mode, it is expected to break at column 78. + + This is another long text to + demonstrate shorter lines. In + ASCII mode, it is expected to + break at column 38. + + This is a longer text after switching back to the default line length. + In ASCII mode, it is expected to break at column 78. + + This is another long text to demonstrate longer lines. In ASCII mode, it is not expected to break at all. + + This is a longer text after switching back to the default line length. + In ASCII mode, it is expected to break at column 78. + +OpenBSD February 5, 2014 OpenBSD |