* mdocml: If the layout is empty except for requesting a left vertical
@ 2017-06-13 16:12 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-13 16:12 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-13 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 16:12 mdocml: If the layout is empty except for requesting a left vertical schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).