summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/char
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-09-18 20:49:58 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-09-18 20:49:58 +0000
commit4ad6d12c95958bac11fc28bf870bee773d3d3dd6 (patch)
tree49bf6c80298be1f6aaef06d86e8f1b4b6fba0466 /regress/usr.bin/mandoc/char
parent92b3eb176fd08cfee644b6d273ae41dd12c0236c (diff)
check whether breakable hyphens
1) are formatted correctly (normal, bold or underlined) 2) actually break the line test cases fixed by term.c rev. 1.60
Diffstat (limited to 'regress/usr.bin/mandoc/char')
-rw-r--r--regress/usr.bin/mandoc/char/Makefile4
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/Makefile6
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/man.in11
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/man.out_ascii19
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/mdoc.in14
-rw-r--r--regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii15
6 files changed, 67 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/char/Makefile b/regress/usr.bin/mandoc/char/Makefile
index cf9d1b4ae13..12827ce51d5 100644
--- a/regress/usr.bin/mandoc/char/Makefile
+++ b/regress/usr.bin/mandoc/char/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.3 2011/07/24 20:26:52 schwarze Exp $
+# $OpenBSD: Makefile,v 1.4 2011/09/18 20:49:57 schwarze Exp $
-SUBDIR+= space N
+SUBDIR+= hyphen space N
groff: _SUBDIRUSE
diff --git a/regress/usr.bin/mandoc/char/hyphen/Makefile b/regress/usr.bin/mandoc/char/hyphen/Makefile
new file mode 100644
index 00000000000..084d95dc2a0
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/hyphen/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1 2011/09/18 20:49:57 schwarze Exp $
+
+REGRESS_TARGETS=man mdoc
+GROFF_TARGETS=man mdoc
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/char/hyphen/man.in b/regress/usr.bin/mandoc/char/hyphen/man.in
new file mode 100644
index 00000000000..74adf576ad3
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/hyphen/man.in
@@ -0,0 +1,11 @@
+.TH hyphen-man 1 "September 18, 2011"
+.SH NAME
+\fBhyphen-man\fR - formatting hyphens and breaking lines
+.SH DESCRIPTION
+This is a long line of text, such that the last word won't fit: break-here
+.PP
+Try the same thing once same again, but now in italic font mode:
+\fIbreak-here\fP
+.PP
+Finally, try it a third time, but this time in bold font mode:
+\fBbreak-here\fP
diff --git a/regress/usr.bin/mandoc/char/hyphen/man.out_ascii b/regress/usr.bin/mandoc/char/hyphen/man.out_ascii
new file mode 100644
index 00000000000..e18baf5c34c
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/hyphen/man.out_ascii
@@ -0,0 +1,19 @@
+hyphen-man(1) hyphen-man(1)
+
+
+
+NNAAMMEE
+ hhyypphheenn--mmaann - formatting hyphens and breaking lines
+
+DDEESSCCRRIIPPTTIIOONN
+ This is a long line of text, such that the last word won't fit: break-
+ here
+
+ Try the same thing once same again, but now in italic font mode: _b_r_e_a_k_-
+ _h_e_r_e
+
+ Finally, try it a third time, but this time in bold font mode: bbrreeaakk--
+ hheerree
+
+
+
diff --git a/regress/usr.bin/mandoc/char/hyphen/mdoc.in b/regress/usr.bin/mandoc/char/hyphen/mdoc.in
new file mode 100644
index 00000000000..af5728fd77a
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/hyphen/mdoc.in
@@ -0,0 +1,14 @@
+.Dd September 18, 2011
+.Dt HYPHEN-MDOC 1
+.Os
+.Sh NAME
+.Nm hyphen-mdoc
+.Nd formatting hyphens and breaking lines
+.Sh DESCRIPTION
+This is a long line of text, such that the last word won't fit: break-here
+.Pp
+Try the same thing once same again, but now in italic font mode:
+\fIbreak-here\fP
+.Pp
+And finally, try it a third time, but this time in bold font mode:
+\fBbreak-here\fP
diff --git a/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii b/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii
new file mode 100644
index 00000000000..d8f3cfa68ea
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/hyphen/mdoc.out_ascii
@@ -0,0 +1,15 @@
+HYPHEN-MDOC(1) OpenBSD Reference Manual HYPHEN-MDOC(1)
+
+NNAAMMEE
+ hhyypphheenn--mmddoocc - formatting hyphens and breaking lines
+
+DDEESSCCRRIIPPTTIIOONN
+ This is a long line of text, such that the last word won't fit: 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
+