summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-04-08 04:45:51 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-04-08 04:45:51 +0000
commit4eabe29308cb1c0936b9915592e3af9b3097dd84 (patch)
treece4be8e2727281aa537beb5ae20ceaa502bc2154 /regress
parent599b8a5de0fd10dafc7eb71efd7e9ce20e78250a (diff)
more tests for excessively long text in TERMP_NOBREAK mode
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/man/HP/Makefile4
-rw-r--r--regress/usr.bin/mandoc/man/HP/break.in10
-rw-r--r--regress/usr.bin/mandoc/man/HP/break.out_ascii16
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.in7
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii5
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/hang.in7
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii5
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.in7
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii6
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/break.in13
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/break.out_ascii12
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nm/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nm/long.in11
-rw-r--r--regress/usr.bin/mandoc/mdoc/Nm/long.out_ascii14
14 files changed, 109 insertions, 12 deletions
diff --git a/regress/usr.bin/mandoc/man/HP/Makefile b/regress/usr.bin/mandoc/man/HP/Makefile
index 50e5e9d8826..e0d2a3b4aa2 100644
--- a/regress/usr.bin/mandoc/man/HP/Makefile
+++ b/regress/usr.bin/mandoc/man/HP/Makefile
@@ -1,5 +1,5 @@
-# $OpenBSD: Makefile,v 1.1 2012/07/10 19:53:12 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2014/04/08 04:45:50 schwarze Exp $
-REGRESS_TARGETS = literal spacing manyargs macrotag
+REGRESS_TARGETS = break literal macrotag manyargs spacing
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/man/HP/break.in b/regress/usr.bin/mandoc/man/HP/break.in
new file mode 100644
index 00000000000..d760b8f2fdb
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/HP/break.in
@@ -0,0 +1,10 @@
+.TH HP-BREAK 1 "September 21, 2011" OpenBSD
+.SH NAME
+HP-break \- breaking the head line of hanged paragraphs
+.SH DESCRIPTION
+.HP 12n
+This is an extremely long head line of a hanged paragraph;
+it is so long that it won't even fit on the line.
+.fi
+The body of the hanged paragraph is quite long as well
+and will again break the line.
diff --git a/regress/usr.bin/mandoc/man/HP/break.out_ascii b/regress/usr.bin/mandoc/man/HP/break.out_ascii
new file mode 100644
index 00000000000..b918825d121
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/HP/break.out_ascii
@@ -0,0 +1,16 @@
+HP-BREAK(1) OpenBSD Reference Manual HP-BREAK(1)
+
+
+
+NNAAMMEE
+ HP-break - breaking the head line of hanged paragraphs
+
+DDEESSCCRRIIPPTTIIOONN
+ This is an extremely long head line of a hanged paragraph; it is so
+ long that it won't even fit on the line.
+ The body of the hanged paragraph is quite long as well and
+ will again break the line.
+
+
+
+OpenBSD September 21, 2011 HP-BREAK(1)
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.in b/regress/usr.bin/mandoc/mdoc/Bl/diag.in
index 2c2a9aec9df..74421ab55b3 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/diag.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.in
@@ -1,4 +1,4 @@
-.Dd January 4, 2012
+.Dd April 8, 2014
.Dt BL-DIAG 1
.Os OpenBSD
.Sh NAME
@@ -37,6 +37,11 @@ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
.It zehn__zehn
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
.El
+.Bl -diag
+.It This is a very long text contained in the diag item head, it is \
+so long that it overruns the line -
+and here comes the item body.
+.El
.Pp
Check that It is not parsed in Bl:
.Bl -diag -compact
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
index c6178b94ebe..5d2c32815fd 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
@@ -28,9 +28,12 @@ DDEESSCCRRIIPPTTIIOONN
zzeehhnn____zzeehhnn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x
+ TThhiiss iiss aa vveerryy lloonngg tteexxtt ccoonnttaaiinneedd iinn tthhee ddiiaagg iitteemm hheeaadd,, iitt iiss ssoo lloonngg
+ tthhaatt iitt oovveerrrruunnss tthhee lliinnee -- and here comes the item body.
+
Check that It is not parsed in Bl:
NNxx NetBSD
OOxx OpenBSD
FFxx FreeBSD
-OpenBSD January 4, 2012 OpenBSD
+OpenBSD April 8, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/hang.in b/regress/usr.bin/mandoc/mdoc/Bl/hang.in
index 434f84d99cc..4b4e2d72b3d 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/hang.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/hang.in
@@ -1,4 +1,4 @@
-.Dd October 28, 2009
+.Dd April 8, 2014
.Dt BL-HANG 1
.Os OpenBSD
.Sh NAME
@@ -45,6 +45,11 @@ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
.El
+.Bl -hang -width 5n
+.It This is a very long text contained in the hanged item head, it is \
+so long that it overruns the line -
+and here comes the item body.
+.El
Compact hanged list:
.Bl -hang -width 6n -compact
.It one
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii
index a9b378867a9..54178ce052e 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii
@@ -35,6 +35,9 @@ DDEESSCCRRIIPPTTIIOONN
zehn__zehn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x
+
+ This is a very long text contained in the hanged item head, it is so long
+ that it overruns the line - and here comes the item body.
Compact hanged list:
one first line
second second line
@@ -43,4 +46,4 @@ DDEESSCCRRIIPPTTIIOONN
tag text
-OpenBSD October 28, 2009 OpenBSD
+OpenBSD April 8, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.in b/regress/usr.bin/mandoc/mdoc/Bl/tag.in
index df16b629c3c..14eefdbb0f9 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/tag.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.in
@@ -1,4 +1,4 @@
-.Dd February 16, 2014
+.Dd April 8, 2014
.Dt BL-TAG 1
.Os OpenBSD
.Sh NAME
@@ -37,6 +37,11 @@ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
.It zehn_ zehn
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
.El
+.Bl -tag -width 5n
+.It This is a very long text contained in the tag, it is so long \
+that it overruns the line -
+and here comes the item body.
+.El
.Bl -tag -width 100n
.It hundred
text text
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
index 8cff8ee53cf..e440a81e109 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
@@ -33,6 +33,10 @@ DDEESSCCRRIIPPTTIIOONN
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x
+ This is a very long text contained in the tag, it is so long that it
+ overruns the line -
+ and here comes the item body.
+
hundred text
text
@@ -62,4 +66,4 @@ DDEESSCCRRIIPPTTIIOONN
second paragraph
-OpenBSD February 16, 2014 OpenBSD
+OpenBSD April 8, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/break.in b/regress/usr.bin/mandoc/mdoc/Fo/break.in
index 3571cbd593d..48a0a1a2714 100644
--- a/regress/usr.bin/mandoc/mdoc/Fo/break.in
+++ b/regress/usr.bin/mandoc/mdoc/Fo/break.in
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: December 25 2013 $
+.Dd April 8, 2014
.Dt FO-BREAK 1
.Os OpenBSD
.Sh NAME
@@ -8,12 +8,23 @@
.Fd using \&Fn:
.Ft my_long_return_type *
.Fn my_long_function "my_long_type first_argument" "my_long_type second_argument"
+.Ft void
+.Fn "this function name is so ridiculously long \
+that it will not fit on the line" "my_long_type first_argument" \
+"my_long_type second_argument" "my_long_type third_argument"
.Fd using \&Fo and single-argument \&Fa:
.Ft my_long_return_type *
.Fo my_long_function
.Fa "my_long_type first_argument"
.Fa "my_long_type second_argument"
.Fc
+.Ft void
+.Fo "this function name is so ridiculously long \
+that it will not fit on the line"
+.Fa "my_long_type first_argument"
+.Fa "my_long_type second_argument"
+.Fa "my_long_type third_argument"
+.Fc
.Fd using \&Fo and multi-argument \&Fa:
.Ft my_long_return_type *
.Fo my_long_function
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/break.out_ascii b/regress/usr.bin/mandoc/mdoc/Fo/break.out_ascii
index 0da37375db2..d01e7518d69 100644
--- a/regress/usr.bin/mandoc/mdoc/Fo/break.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Fo/break.out_ascii
@@ -10,12 +10,22 @@ SSYYNNOOPPSSIISS
mmyy__lloonngg__ffuunnccttiioonn(_m_y___l_o_n_g___t_y_p_e _f_i_r_s_t___a_r_g_u_m_e_n_t,
_m_y___l_o_n_g___t_y_p_e _s_e_c_o_n_d___a_r_g_u_m_e_n_t);
+ _v_o_i_d
+ tthhiiss ffuunnccttiioonn nnaammee iiss ssoo rriiddiiccuulloouussllyy lloonngg tthhaatt iitt wwiillll nnoott ffiitt oonn tthhee
+ lliinnee(_m_y___l_o_n_g___t_y_p_e _f_i_r_s_t___a_r_g_u_m_e_n_t, _m_y___l_o_n_g___t_y_p_e _s_e_c_o_n_d___a_r_g_u_m_e_n_t,
+ _m_y___l_o_n_g___t_y_p_e _t_h_i_r_d___a_r_g_u_m_e_n_t);
+
uussiinngg FFoo aanndd ssiinnggllee--aarrgguummeenntt FFaa::
_m_y___l_o_n_g___r_e_t_u_r_n___t_y_p_e _*
mmyy__lloonngg__ffuunnccttiioonn(_m_y___l_o_n_g___t_y_p_e _f_i_r_s_t___a_r_g_u_m_e_n_t,
_m_y___l_o_n_g___t_y_p_e _s_e_c_o_n_d___a_r_g_u_m_e_n_t);
+ _v_o_i_d
+ tthhiiss ffuunnccttiioonn nnaammee iiss ssoo rriiddiiccuulloouussllyy lloonngg tthhaatt iitt wwiillll nnoott ffiitt oonn tthhee
+ lliinnee(_m_y___l_o_n_g___t_y_p_e _f_i_r_s_t___a_r_g_u_m_e_n_t, _m_y___l_o_n_g___t_y_p_e _s_e_c_o_n_d___a_r_g_u_m_e_n_t,
+ _m_y___l_o_n_g___t_y_p_e _t_h_i_r_d___a_r_g_u_m_e_n_t);
+
uussiinngg FFoo aanndd mmuullttii--aarrgguummeenntt FFaa::
_m_y___l_o_n_g___r_e_t_u_r_n___t_y_p_e _*
@@ -35,4 +45,4 @@ DDEESSCCRRIIPPTTIIOONN
mmyy__lloonngg__ffuunnccttiioonn(_m_y___l_o_n_g___t_y_p_e _f_i_r_s_t___a_r_g_u_m_e_n_t,
_m_y___l_o_n_g___t_y_p_e _s_e_c_o_n_d___a_r_g_u_m_e_n_t)
-OpenBSD December 25, 2013 OpenBSD
+OpenBSD April 8, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Nm/Makefile b/regress/usr.bin/mandoc/mdoc/Nm/Makefile
index 914fd453e69..9ef72ca44c4 100644
--- a/regress/usr.bin/mandoc/mdoc/Nm/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Nm/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.5 2012/07/12 15:31:49 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2014/04/08 04:45:50 schwarze Exp $
-REGRESS_TARGETS = empty font emptyNAME emptyNAMEuse badNAME badNAMEuse
+REGRESS_TARGETS = empty font emptyNAME emptyNAMEuse badNAME badNAMEuse long
SKIP_GROFF = emptyNAME emptyNAMEuse badNAME badNAMEuse
diff --git a/regress/usr.bin/mandoc/mdoc/Nm/long.in b/regress/usr.bin/mandoc/mdoc/Nm/long.in
new file mode 100644
index 00000000000..662360e49ab
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Nm/long.in
@@ -0,0 +1,11 @@
+.Dd April 4, 2014
+.Dt NM-LONG 1
+.Os OpenBSD
+.Sh NAME
+.Nm \&Nm-long
+.Nd long \&Nm in the SYNOPSIS
+.Sh SYNOPSIS
+.Nm "This is a terribly long name, it is so long that it does not fit \
+one one single line -"
+.Fl o
+.Ar
diff --git a/regress/usr.bin/mandoc/mdoc/Nm/long.out_ascii b/regress/usr.bin/mandoc/mdoc/Nm/long.out_ascii
new file mode 100644
index 00000000000..ed4db924764
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Nm/long.out_ascii
@@ -0,0 +1,14 @@
+NM-LONG(1) OpenBSD Reference Manual NM-LONG(1)
+
+NNAAMMEE
+ NNmm--lloonngg - long Nm in the SYNOPSIS
+
+SSYYNNOOPPSSIISS
+ TThhiiss iiss aa tteerrrriibbllyy lloonngg nnaammee,, iitt iiss ssoo lloonngg tthhaatt iitt ddooeess nnoott ffiitt oonnee oonnee
+ ssiinnggllee
+ lliinnee
+ --
+ --oo
+ _f_i_l_e _._._.
+
+OpenBSD April 4, 2014 OpenBSD