diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-01-30 16:05:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-01-30 16:05:30 +0000 |
commit | 3346ee504d87b690135176bebeecf513a150d2a5 (patch) | |
tree | 0cd93d66b729a045304560fe34aa9039541c79ba /regress | |
parent | 110382a22b114cad0f9431e25d6699be6f8b4f74 (diff) |
Implement the \N'number' (numbered character) roff escape sequence.
Don't use it in new manuals, it is inherently non-portable, but we
need it for backward-compatibility with existing manuals, for example
in Xenocara driver pages.
ok kristaps@ matthieu@ jmc@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/char/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/char/N/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/char/N/basic.in | 23 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/char/N/basic.out_ascii | bin | 0 -> 456 bytes |
4 files changed, 31 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/char/Makefile b/regress/usr.bin/mandoc/char/Makefile index bffdc8d2a1b..20ec64a8756 100644 --- a/regress/usr.bin/mandoc/char/Makefile +++ b/regress/usr.bin/mandoc/char/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.1 2009/12/23 23:40:58 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2011/01/30 16:05:29 schwarze Exp $ -SUBDIR+= space +SUBDIR+= space N groff groff-clean: _SUBDIRUSE diff --git a/regress/usr.bin/mandoc/char/N/Makefile b/regress/usr.bin/mandoc/char/N/Makefile new file mode 100644 index 00000000000..81ff3c399bd --- /dev/null +++ b/regress/usr.bin/mandoc/char/N/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2011/01/30 16:05:29 schwarze Exp $ + +REGRESS_TARGETS=basic +GROFF_TARGETS=basic + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/char/N/basic.in b/regress/usr.bin/mandoc/char/N/basic.in new file mode 100644 index 00000000000..1d7aa4b11fd --- /dev/null +++ b/regress/usr.bin/mandoc/char/N/basic.in @@ -0,0 +1,23 @@ +.TH N-BASIC 1 "January 29, 2011" +.SH NAME +N-basic \- basic handling of character number escapes +.SH DESCRIPTION +basic usage: x\N'65'x +.br +too large: x\N'259'x +.br +much too large: x\N'2259'x +.br +null: x\N'0'x +.br +non-numerical content: x\N'XX'x +.br +mixed content: x\N'65XX'x +.br +empty: x\N''x +.br +no quoting: x\N65x +.br +non-matching quoting characters: x\NX65Yx +.br +end of test document diff --git a/regress/usr.bin/mandoc/char/N/basic.out_ascii b/regress/usr.bin/mandoc/char/N/basic.out_ascii Binary files differnew file mode 100644 index 00000000000..c4a07a8abe1 --- /dev/null +++ b/regress/usr.bin/mandoc/char/N/basic.out_ascii |