summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-10-06 22:45:14 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-10-06 22:45:14 +0000
commite56137dca40ca18d5f695bc401d93d78c3d87426 (patch)
tree3fdc5edaac2f7b079e92bdaa7772c75b5438c925 /regress/usr.bin/mandoc
parentd78580568d50562b472fd42e9515fe3d88d5cc10 (diff)
We don't do hyphenation, but we allow breaking the line at hyphens that are
already there in the middle of words. So far, we only allowed this on text lines. Now it turns out some macros allow this for their arguments, too, in particular .Nd and most of the .%? citation macros. Issue found by Franco Fichtner <franco at lastsummer dot de> while doing systematic groff-mandoc comparisons in the DragonFly base system, THANKS! While here, garbage collect two empty prevalidator function pointer lists and sort a couple of function declarations.
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nd/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nd/hyph.in11
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nd/hyph.out_ascii10
3 files changed, 23 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Nd/Makefile b/regress/usr.bin/mandoc/mdoc/Nd/Makefile
index e37fab926d4..82154800c72 100644
--- a/regress/usr.bin/mandoc/mdoc/Nd/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Nd/Makefile
@@ -1,5 +1,5 @@
-# $OpenBSD: Makefile,v 1.2 2011/11/17 16:28:45 schwarze Exp $
+# $OpenBSD: Makefile,v 1.3 2013/10/06 22:45:13 schwarze Exp $
-REGRESS_TARGETS=noarg
+REGRESS_TARGETS = noarg hyph
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Nd/hyph.in b/regress/usr.bin/mandoc/mdoc/Nd/hyph.in
new file mode 100644
index 00000000000..7922835d0db
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Nd/hyph.in
@@ -0,0 +1,11 @@
+.Dd October 5, 2013
+.Dt ND-HYPH 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nd-hyph
+.Nd when there is already a hyphen within the the word, \
+line-breaking is permitted at that place
+.Sh DESCRIPTION
+Even in the document description line in the
+.Sx NAME
+section.
diff --git a/regress/usr.bin/mandoc/mdoc/Nd/hyph.out_ascii b/regress/usr.bin/mandoc/mdoc/Nd/hyph.out_ascii
new file mode 100644
index 00000000000..82e50b84b80
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Nd/hyph.out_ascii
@@ -0,0 +1,10 @@
+ND-HYPH(1) OpenBSD Reference Manual ND-HYPH(1)
+
+NNAAMMEE
+ NNdd--hhyypphh - when there is already a hyphen within the the word, line-
+ breaking is permitted at that place
+
+DDEESSCCRRIIPPTTIIOONN
+ Even in the document description line in the _N_A_M_E section.
+
+OpenBSD October 5, 2013 OpenBSD