From e56137dca40ca18d5f695bc401d93d78c3d87426 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 6 Oct 2013 22:45:14 +0000 Subject: 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 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. --- regress/usr.bin/mandoc/mdoc/Nd/hyph.in | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 regress/usr.bin/mandoc/mdoc/Nd/hyph.in (limited to 'regress/usr.bin/mandoc/mdoc/Nd/hyph.in') 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. -- cgit v1.2.3