summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-02-21 23:11:40 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-02-21 23:11:40 +0000
commit522bf9ec9500151462132a32b7fdf57ccce4f969 (patch)
tree676d96cc8a2aa13d95d238d7c1132b76550da634 /regress/usr.bin/mandoc
parent878d4751f24e31436dc58d237ab49e16d9d690b0 (diff)
Check that we do not break the line at existing hyphens in macro arguments.
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