=================================================================== RCS file: /cvs/mandoc/tbl_term.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -p -r1.8 -r1.9 --- mandoc/tbl_term.c 2011/01/04 13:14:26 1.8 +++ mandoc/tbl_term.c 2011/01/04 13:21:45 1.9 @@ -1,4 +1,4 @@ -/* $Id: tbl_term.c,v 1.8 2011/01/04 13:14:26 kristaps Exp $ */ +/* $Id: tbl_term.c,v 1.9 2011/01/04 13:21:45 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -455,6 +455,7 @@ static void tbl_calc_data(struct termp *tp, const struct tbl *tbl, const struct tbl_dat *dp, struct termp_tbl *tblp) { + int sz; /* Branch down into data sub-types. */ @@ -462,7 +463,9 @@ tbl_calc_data(struct termp *tp, const struct tbl *tbl, case (TBL_CELL_HORIZ): /* FALLTHROUGH */ case (TBL_CELL_DHORIZ): - tblp->width = term_len(tp, 1); + sz = term_len(tp, 1); + if (tblp->width < sz) + tblp->width = sz; break; case (TBL_CELL_LONG): /* FALLTHROUGH */