HTML handler: Normalise box type on replacment.

We currently only do TABLE --> BLOCK normalisation.
This commit is contained in:
Michael Drake 2018-01-21 12:32:10 +00:00
parent 110cc9fb3e
commit 790d30b788

View File

@ -97,6 +97,16 @@ html_object_done(struct box *box,
box->object = object;
/* Normalise the box type, now it has been replaced. */
switch (box->type) {
case BOX_TABLE:
box->type = BOX_BLOCK;
break;
default:
/* TODO: Any other box types need mapping? */
break;
}
if (!(box->flags & REPLACE_DIM)) {
/* invalidate parent min, max widths */
for (b = box; b; b = b->parent)