summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-10-17 20:51:33 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-10-17 20:51:33 +0000
commitaf98335b55ed1a87e3fe2498675904112e8f5538 (patch)
treef83b9ff09a44d3955aa937be27ab722472ac45fe /regress/usr.bin
parentd8a63836fc67da410b5159987159633598e6dda2 (diff)
Implement the .UR/.UE block (uniform resource identifier) introduced in the
man-ext macros by Eric S. Raymond, enabled by default in groff_man(7). Usual disclaimer: You don't write new man(7) code, so you are not going to use these, either. Improves e.g. the bzr(1) and etherape(1) manuals. Thanks to naddy@ for bringing these to my attention.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/man/Makefile4
-rw-r--r--regress/usr.bin/mandoc/man/UR/Makefile5
-rw-r--r--regress/usr.bin/mandoc/man/UR/args.in29
-rw-r--r--regress/usr.bin/mandoc/man/UR/args.out_ascii23
4 files changed, 59 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/man/Makefile b/regress/usr.bin/mandoc/man/Makefile
index a591c58dc55..b9a74e228c0 100644
--- a/regress/usr.bin/mandoc/man/Makefile
+++ b/regress/usr.bin/mandoc/man/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.12 2012/11/18 00:23:56 schwarze Exp $
+# $OpenBSD: Makefile,v 1.13 2013/10/17 20:51:28 schwarze Exp $
-SUBDIR = BI EX HP IP PD PP RS TH TP TS nf blank
+SUBDIR = BI EX HP IP PD PP RS TH TP TS UR nf blank
ascii groff groff-clean obj-clean tman: _SUBDIRUSE
diff --git a/regress/usr.bin/mandoc/man/UR/Makefile b/regress/usr.bin/mandoc/man/UR/Makefile
new file mode 100644
index 00000000000..a0230e4712b
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/UR/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2013/10/17 20:51:31 schwarze Exp $
+
+REGRESS_TARGETS = args
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/man/UR/args.in b/regress/usr.bin/mandoc/man/UR/args.in
new file mode 100644
index 00000000000..f45770b2beb
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/UR/args.in
@@ -0,0 +1,29 @@
+.TH UR-ARGS 1 "October 17, 2013" OpenBSD
+.SH NAME
+UR-basic \- argument handling of the man-ext URI macro
+.SH DESCRIPTION
+argument plus text:
+.UR http://www.openbsd.org/
+OpenBSD
+homepage
+.UE
+.PP
+argument but no text:
+.UR http://www.netbsd.org/
+.UE
+.PP
+no argument, but text:
+.UR
+some text
+.UE
+.PP
+two arguments plus text:
+.UR first second
+some text
+.UE
+.PP
+two arguments, but no text:
+.UR first second
+.UE
+.PP
+final text
diff --git a/regress/usr.bin/mandoc/man/UR/args.out_ascii b/regress/usr.bin/mandoc/man/UR/args.out_ascii
new file mode 100644
index 00000000000..dad5301494d
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/UR/args.out_ascii
@@ -0,0 +1,23 @@
+UR-ARGS(1) OpenBSD Reference Manual UR-ARGS(1)
+
+
+
+NNAAMMEE
+ UR-basic - argument handling of the man-ext URI macro
+
+DDEESSCCRRIIPPTTIIOONN
+ argument plus text: OpenBSD homepage <http://www.openbsd.org/>
+
+ argument but no text: <http://www.netbsd.org/>
+
+ no argument, but text: some text <>
+
+ two arguments plus text: some text <first>
+
+ two arguments, but no text: <first>
+
+ final text
+
+
+
+OpenBSD October 17, 2013 UR-ARGS(1)