From 285828366da4ac012a9d4fa4ced9ecd3cdd58af4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 23 Dec 2009 23:40:59 +0000 Subject: regression test for non-breaking space (\~); fails with 1.9.13, succeeds with 1.9.14 --- regress/usr.bin/mandoc/Makefile | 4 ++-- regress/usr.bin/mandoc/char/Makefile | 7 +++++++ regress/usr.bin/mandoc/char/Makefile.inc | 3 +++ regress/usr.bin/mandoc/char/space/Makefile | 6 ++++++ regress/usr.bin/mandoc/char/space/nobreak.in | 18 ++++++++++++++++++ 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/mandoc/char/Makefile create mode 100644 regress/usr.bin/mandoc/char/Makefile.inc create mode 100644 regress/usr.bin/mandoc/char/space/Makefile create mode 100644 regress/usr.bin/mandoc/char/space/nobreak.in 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 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 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 -- cgit v1.2.3