summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/mdoc/Nd/hyph.in
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/mdoc/Nd/hyph.in
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/mdoc/Nd/hyph.in')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nd/hyph.in11
1 files changed, 11 insertions, 0 deletions
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.