From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id af857b8a for ; Tue, 13 Jun 2017 11:12:32 -0500 (EST) Date: Tue, 13 Jun 2017 11:12:32 -0500 (EST) Message-Id: <5059853896719029904.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: If the layout is empty except for requesting a left vertical X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mdocml: tbl_layout.c Revision Data ------------- Index: tbl_layout.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/tbl_layout.c,v retrieving revision 1.42 retrieving revision 1.43 diff -Ltbl_layout.c -Ltbl_layout.c -u -p -r1.42 -r1.43 --- tbl_layout.c +++ tbl_layout.c @@ -298,6 +298,8 @@ tbl_layout(struct tbl_node *tbl, int ln, 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; } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv