summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-12-23 23:40:59 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-12-23 23:40:59 +0000
commit285828366da4ac012a9d4fa4ced9ecd3cdd58af4 (patch)
tree1e4a055f9849bbfe544c91bfd1c2ec29fe800ea9 /regress
parent8689371fa9a194c15c79be8933c6af01faf7be64 (diff)
regression test for non-breaking space (\~);
fails with 1.9.13, succeeds with 1.9.14
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/Makefile4
-rw-r--r--regress/usr.bin/mandoc/char/Makefile7
-rw-r--r--regress/usr.bin/mandoc/char/Makefile.inc3
-rw-r--r--regress/usr.bin/mandoc/char/space/Makefile6
-rw-r--r--regress/usr.bin/mandoc/char/space/nobreak.in18
5 files changed, 36 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/Makefile b/regress/usr.bin/mandoc/Makefile
index 1519e0b23f9..3904e8360fd 100644
--- a/regress/usr.bin/mandoc/Makefile
+++ b/regress/usr.bin/mandoc/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.1 2009/10/28 03:20:42 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2009/12/23 23:40:58 schwarze Exp $
-SUBDIR+= mdoc
+SUBDIR+= mdoc char
groff groff-clean: _SUBDIRUSE
diff --git a/regress/usr.bin/mandoc/char/Makefile b/regress/usr.bin/mandoc/char/Makefile
new file mode 100644
index 00000000000..bffdc8d2a1b
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/Makefile
@@ -0,0 +1,7 @@
+# $OpenBSD: Makefile,v 1.1 2009/12/23 23:40:58 schwarze Exp $
+
+SUBDIR+= space
+
+groff groff-clean: _SUBDIRUSE
+
+.include <bsd.subdir.mk>
diff --git a/regress/usr.bin/mandoc/char/Makefile.inc b/regress/usr.bin/mandoc/char/Makefile.inc
new file mode 100644
index 00000000000..799b110a419
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/Makefile.inc
@@ -0,0 +1,3 @@
+# $OpenBSD: Makefile.inc,v 1.1 2009/12/23 23:40:58 schwarze Exp $
+
+.include "../Makefile.inc"
diff --git a/regress/usr.bin/mandoc/char/space/Makefile b/regress/usr.bin/mandoc/char/space/Makefile
new file mode 100644
index 00000000000..8afb353b5fc
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1 2009/12/23 23:40:58 schwarze Exp $
+
+REGRESS_TARGETS=nobreak
+GROFF_TARGETS=nobreak
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/char/space/nobreak.in b/regress/usr.bin/mandoc/char/space/nobreak.in
new file mode 100644
index 00000000000..e2ac46c4041
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/nobreak.in
@@ -0,0 +1,18 @@
+.Dd $Mdocdate: December 23 2009 $
+.Dt SPACE-NOBREAK 1
+.Os
+.Sh NAME
+.Nm space-nobreak
+.Nd non-breaking, non-collapsing space
+.Sh DESCRIPTION
+The following line has 78 characters and fits:
+.Pp
+78 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x x
+.Pp
+The following line has 79 characters and breaks:
+.Pp
+79 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x x
+.Pp
+With a non-breaking space, it breaks earlier:
+.Pp
+79 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x\~x