diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-08 12:16:24 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-08 12:16:24 +0000 |
commit | 921d8a651c51c2451270562def0eb5725dafa61d (patch) | |
tree | 238ba3928caa669658852fd470d2c91b86222394 /regress | |
parent | 11387baaec0c1b0f126bd7a3147f92e2899e1eb4 (diff) | |
download | mandoc-921d8a651c51c2451270562def0eb5725dafa61d.tar.gz |
Skip whitespace before tokens, too.
Bug found by bentley@ with input like "delim $$ delim off".
Diffstat (limited to 'regress')
-rw-r--r-- | regress/eqn/delim/Makefile | 3 | ||||
-rw-r--r-- | regress/eqn/delim/basic.in | 11 | ||||
-rw-r--r-- | regress/eqn/delim/basic.out_ascii | 2 | ||||
-rw-r--r-- | regress/eqn/delim/basic.out_utf8 | 10 |
4 files changed, 23 insertions, 3 deletions
diff --git a/regress/eqn/delim/Makefile b/regress/eqn/delim/Makefile index dd8d92e7..6de941ee 100644 --- a/regress/eqn/delim/Makefile +++ b/regress/eqn/delim/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.2 2020/01/08 10:50:54 schwarze Exp $ +# $OpenBSD: Makefile,v 1.3 2020/01/08 12:09:14 schwarze Exp $ REGRESS_TARGETS = basic +UTF8_TARGETS = basic GOPTS = -e SKIP_GROFF = diff --git a/regress/eqn/delim/basic.in b/regress/eqn/delim/basic.in index 03bb0e72..9ae9f5f3 100644 --- a/regress/eqn/delim/basic.in +++ b/regress/eqn/delim/basic.in @@ -1,4 +1,4 @@ -.\" $OpenBSD: basic.in,v 1.3 2020/01/08 10:58:09 schwarze Exp $ +.\" $OpenBSD: basic.in,v 1.4 2020/01/08 12:09:14 schwarze Exp $ .Dd $Mdocdate$ .Dt DELIM-BASIC 1 .Os @@ -19,4 +19,13 @@ inline [delta] delim onepsilon .EN inline [zeta] +.EQ +delim $$ +delim off +.EN +inline $eta$ +.EQ +delim on +.EN +inline $theta$ final text diff --git a/regress/eqn/delim/basic.out_ascii b/regress/eqn/delim/basic.out_ascii index 03a8059b..7f748bcc 100644 --- a/regress/eqn/delim/basic.out_ascii +++ b/regress/eqn/delim/basic.out_ascii @@ -5,6 +5,6 @@ NNAAMMEE DDEESSCCRRIIPPTTIIOONN initial text <alpha> inline <beta> <gamma> inline [delta] <epsilon> - inline <zeta> final text + inline <zeta> inline $eta$ inline <theta> final text OpenBSD January 8, 2020 OpenBSD diff --git a/regress/eqn/delim/basic.out_utf8 b/regress/eqn/delim/basic.out_utf8 new file mode 100644 index 00000000..b7cb7e97 --- /dev/null +++ b/regress/eqn/delim/basic.out_utf8 @@ -0,0 +1,10 @@ +DELIM-BASIC(1) General Commands Manual DELIM-BASIC(1) + +NNAAMMEE + ddeelliimm--bbaassiicc – inline eqn delimiters + +DDEESSCCRRIIPPTTIIOONN + initial text α inline β γ inline [delta] ε inline ζ inline $eta$ inline θ + final text + +OpenBSD January 8, 2020 OpenBSD |