=================================================================== RCS file: /cvs/mandoc/tbl_term.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -p -r1.75 -r1.76 --- mandoc/tbl_term.c 2021/08/10 12:55:04 1.75 +++ mandoc/tbl_term.c 2022/04/08 16:53:45 1.76 @@ -1,4 +1,4 @@ -/* $Id: tbl_term.c,v 1.75 2021/08/10 12:55:04 schwarze Exp $ */ +/* $Id: tbl_term.c,v 1.76 2022/04/08 16:53:45 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011-2021 Ingo Schwarze @@ -820,8 +820,11 @@ tbl_literal(struct termp *tp, const struct tbl_dat *dp width = col->width; ic = dp->layout->col; hspans = dp->hspans; - while (hspans--) - width += tp->tbl.cols[++ic].width + 3; + while (hspans--) { + width += tp->tbl.cols[ic].spacing; + ic++; + width += tp->tbl.cols[ic].width; + } padr = width > len ? width - len : 0; padl = 0;