summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-01-01 20:08:18 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-01-01 20:08:18 +0000
commitb3b4ed7cd4554426959bbe9cf081b4f52c87f456 (patch)
tree60639716a063afd8efc618c5c6c9f9dc677eed91 /regress
parentcc54bcf4db153a3325cb74a56b636397168a2d42 (diff)
When a .Fl macro without an argument is followed by text,
the space after the dash appears to be missing. Needs fixing. Test triggered in a discussion with kristaps@.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/Makefile6
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/noarg.in13
2 files changed, 16 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/Makefile b/regress/usr.bin/mandoc/mdoc/Fl/Makefile
index efa2b071c1b..4f09297db0b 100644
--- a/regress/usr.bin/mandoc/mdoc/Fl/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Fl/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.1 2009/12/24 19:18:20 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2010/01/01 20:08:17 schwarze Exp $
-REGRESS_TARGETS=multiarg
-GROFF_TARGETS=multiarg
+REGRESS_TARGETS=noarg multiarg
+GROFF_TARGETS=noarg multiarg
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/noarg.in b/regress/usr.bin/mandoc/mdoc/Fl/noarg.in
new file mode 100644
index 00000000000..dfd5c8cbb94
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/noarg.in
@@ -0,0 +1,13 @@
+.Dd $Mdocdate: January 1 2010 $
+.Dt FL-NOARG 1
+.Os
+.Sh NAME
+.Nm Fl-noarg
+.Nd Fl macro without arguments
+.Sh DESCRIPTION
+Without an argument, it yields
+.Fl
+a dash.
+.Pp
+This is true even before punctuation
+.Fl .