summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/out.c b/out.c
index 5da58c6a..e8916b5e 100644
--- a/out.c
+++ b/out.c
@@ -157,8 +157,9 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp,
if (col->width < dp->layout->width)
col->width = dp->layout->width;
tblcalc_data(tbl, col, opts, dp,
- rmargin && dp->block ?
- rmargin / (sp->opts->cols + 1) : 0);
+ dp->block == 0 ? 0 :
+ dp->layout->width ? dp->layout->width :
+ rmargin ? rmargin / (sp->opts->cols + 1) : 0);
}
}