diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-13 16:12:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-13 16:12:01 +0000 |
commit | f4493a0401398099216efffb5687a8a698a1d20c (patch) | |
tree | 087ef6a22bea056384dbe7f47b2f2d42b8b7c3b8 | |
parent | 03afb37cb14e16b26a47195f3bc47f1960313760 (diff) | |
download | mandoc-f4493a0401398099216efffb5687a8a698a1d20c.tar.gz |
If the layout is empty except for requesting a left vertical frame,
record that detail in struct tbl_opts, such that term_tbl() can do
correct column calculations and doesn't prematurely break lines.
Fixes the tbl/layout/empty regression test that got broken when
line breaking in text block cells was implemented.
-rw-r--r-- | tbl_layout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c index 946fa013..757809fd 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -298,6 +298,8 @@ tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) tbl->parse, ln, pos, NULL); cell_alloc(tbl, tbl->first_row, TBL_CELL_LEFT); + if (tbl->opts.lvert < tbl->first_row->vert) + tbl->opts.lvert = tbl->first_row->vert; return; } |