From 71cb7072c58fdfff26a9cd48f32c44d79d713898 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 16 Jul 2012 21:14:06 +0000 Subject: some more whitespace tests found in my tree --- regress/usr.bin/mandoc/char/space/Makefile | 5 +++-- regress/usr.bin/mandoc/char/space/multiple.in | 6 ++++++ regress/usr.bin/mandoc/char/space/multiple.out_ascii | 6 ++++++ regress/usr.bin/mandoc/char/space/zerowidth.in | 10 ++++++++++ regress/usr.bin/mandoc/char/space/zerowidth.out_ascii | 17 +++++++++++++++++ 5 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/mandoc/char/space/zerowidth.in create mode 100644 regress/usr.bin/mandoc/char/space/zerowidth.out_ascii diff --git a/regress/usr.bin/mandoc/char/space/Makefile b/regress/usr.bin/mandoc/char/space/Makefile index 87021d23a7f..7ce50af3cb1 100644 --- a/regress/usr.bin/mandoc/char/space/Makefile +++ b/regress/usr.bin/mandoc/char/space/Makefile @@ -1,5 +1,6 @@ -# $OpenBSD: Makefile,v 1.5 2011/11/17 16:28:45 schwarze Exp $ +# $OpenBSD: Makefile,v 1.6 2012/07/16 21:14:05 schwarze Exp $ -REGRESS_TARGETS=leading-mdoc leading-man multiple nobreak tab tab-man +REGRESS_TARGETS = leading-mdoc leading-man multiple zerowidth +REGRESS_TARGETS += eos nobreak tab tab-man .include diff --git a/regress/usr.bin/mandoc/char/space/multiple.in b/regress/usr.bin/mandoc/char/space/multiple.in index 57945165fc6..470372692d9 100644 --- a/regress/usr.bin/mandoc/char/space/multiple.in +++ b/regress/usr.bin/mandoc/char/space/multiple.in @@ -10,3 +10,9 @@ one space here two spaces here .Pp three spaces here +.Pp +one non-collapsing space here +.Pp +two non-collapsing spaces\ \ here +.Pp +three non-collapsing spaces\ \ \ here diff --git a/regress/usr.bin/mandoc/char/space/multiple.out_ascii b/regress/usr.bin/mandoc/char/space/multiple.out_ascii index 0e4ff69b557..5db4a3e1406 100644 --- a/regress/usr.bin/mandoc/char/space/multiple.out_ascii +++ b/regress/usr.bin/mandoc/char/space/multiple.out_ascii @@ -10,4 +10,10 @@ DDEESSCCRRIIPPTTIIOONN three spaces here + one non-collapsing space here + + two non-collapsing spaces here + + three non-collapsing spaces here + OpenBSD April 23, 2010 OpenBSD diff --git a/regress/usr.bin/mandoc/char/space/zerowidth.in b/regress/usr.bin/mandoc/char/space/zerowidth.in new file mode 100644 index 00000000000..5c1abf395f0 --- /dev/null +++ b/regress/usr.bin/mandoc/char/space/zerowidth.in @@ -0,0 +1,10 @@ +.TH SPACE-BASIC 1 date OpenBSD +.SH NAME +space-basic \- special space characters +.SH DESCRIPTION +.nf +zero width space \e^ between A and B: A\^B +zero width space \e% between A and B: A\%B +zero width space \e& between A and B: A\&B +zero width space \e| between A and B: A\|B +end of test document diff --git a/regress/usr.bin/mandoc/char/space/zerowidth.out_ascii b/regress/usr.bin/mandoc/char/space/zerowidth.out_ascii new file mode 100644 index 00000000000..dc534849176 --- /dev/null +++ b/regress/usr.bin/mandoc/char/space/zerowidth.out_ascii @@ -0,0 +1,17 @@ +SPACE-BASIC(1) OpenBSD Reference Manual SPACE-BASIC(1) + + + +NNAAMMEE + space-basic - special space characters + +DDEESSCCRRIIPPTTIIOONN + zero width space \^ between A and B: AB + zero width space \% between A and B: AB + zero width space \& between A and B: AB + zero width space \| between A and B: AB + end of test document + + + +OpenBSD date SPACE-BASIC(1) -- cgit v1.2.3