summaryrefslogtreecommitdiffstats
path: root/regress/tbl/data/escz_end.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-26 14:52:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-26 14:52:05 +0000
commitc1cd8ca4c718f4917e14241a7666a071d266192d (patch)
tree65e5e40238ccf7f8d120ef32890358e72632a6de /regress/tbl/data/escz_end.in
parent008fe3ecbf933d6e4c5edd9fd1ff2327703d428f (diff)
downloadmandoc-c1cd8ca4c718f4917e14241a7666a071d266192d.tar.gz
At the end of every tbl(7) cell, clear the \z state.
This is needed because the TERMP_MULTICOL mode is designed such that term_tbl() buffers all the cells of the table row before the normal reset logic near the end of term_flushln() can be reached. This fixes an assertion failure triggered by \z near the end of a table cell, found by tb@ using afl(1).
Diffstat (limited to 'regress/tbl/data/escz_end.in')
-rw-r--r--regress/tbl/data/escz_end.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/regress/tbl/data/escz_end.in b/regress/tbl/data/escz_end.in
new file mode 100644
index 00000000..5149f5d6
--- /dev/null
+++ b/regress/tbl/data/escz_end.in
@@ -0,0 +1,14 @@
+.\" $OpenBSD: escz_end.in,v 1.1 2022/04/26 14:46:30 schwarze Exp $
+.TH TBL-DATA-ESCZ_END 1 "April 26, 2022"
+.SH NAME
+tbl-data-escz_end \- z escape sequence at the end of a tbl(7) cell
+.SH DESCRIPTION
+initial text
+.TS
+tab(:);
+LLL.
+a:b:c
+d\z:e:f
+.TE
+.sp
+final text