summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/mdoc.in5
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii5
2 files changed, 8 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/char/hyphen/mdoc.in b/regress/usr.bin/mandoc/char/hyphen/mdoc.in
index 843b8ec6dfa..76cfd0d3220 100644
--- a/regress/usr.bin/mandoc/char/hyphen/mdoc.in
+++ b/regress/usr.bin/mandoc/char/hyphen/mdoc.in
@@ -1,4 +1,4 @@
-.Dd September 18, 2011
+.Dd February 22, 2014
.Dt HYPHEN-MDOC 1
.Os OpenBSD
.Sh NAME
@@ -7,6 +7,9 @@
.Sh DESCRIPTION
This is a long line of text, such that the last word won't fit: break-here
.Pp
+But do not break the line at hyphens inside macro arguments: no
+.No break-here
+.Pp
Try the same thing once same again, but now in italic font mode:
\fIbreak-here\fP
.Pp
diff --git a/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii b/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii
index cbf9ad954cf..d5bf25c1719 100644
--- a/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii
+++ b/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii
@@ -7,10 +7,13 @@ DDEESSCCRRIIPPTTIIOONN
This is a long line of text, such that the last word won't fit: break-
here
+ But do not break the line at hyphens inside macro arguments: no
+ break-here
+
Try the same thing once same again, but now in italic font mode: _b_r_e_a_k_-
_h_e_r_e
And finally, try it a third time, but this time in bold font mode: bbrreeaakk--
hheerree
-OpenBSD September 18, 2011 OpenBSD
+OpenBSD February 22, 2014 OpenBSD