]> git.cameronkatri.com Git - mandoc.git/commit
At the end of every tbl(7) cell, clear the \z state.
authorIngo Schwarze <schwarze@openbsd.org>
Tue, 26 Apr 2022 14:52:05 +0000 (14:52 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Tue, 26 Apr 2022 14:52:05 +0000 (14:52 +0000)
commitc2e70e08c4a052a976c913961c21ebe72ab8111e
treec077eaa18e4190d474428ba1049d0d27350101bf
parent8c8298198d4578f2d09c34f5b09dea2af3a45a19
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).
regress/tbl/data/Makefile
regress/tbl/data/escz.in [new file with mode: 0644]
regress/tbl/data/escz.out_ascii [new file with mode: 0644]
regress/tbl/data/escz_end.in [new file with mode: 0644]
regress/tbl/data/escz_end.out_ascii [new file with mode: 0644]
tbl_term.c