Index: out.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/out.c,v retrieving revision 1.40 diff -u -p -r1.40 out.c --- out.c 9 Apr 2011 15:29:40 -0000 1.40 +++ out.c 26 Apr 2011 20:07:03 -0000 @@ -293,7 +293,7 @@ tblcalc_literal(struct rofftbl *tbl, str case (TBL_CELL_LONG): /* FALLTHROUGH */ case (TBL_CELL_CENTRE): - bufsz = (*tbl->len)(1, tbl->arg); + bufsz = (*tbl->len)(2, tbl->arg); break; default: bufsz = (*tbl->len)(1, tbl->arg); Index: tbl_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/tbl_term.c,v retrieving revision 1.19 diff -u -p -r1.19 tbl_term.c --- tbl_term.c 25 Jan 2011 12:07:30 -0000 1.19 +++ tbl_term.c 26 Apr 2011 20:07:03 -0000 @@ -198,8 +198,6 @@ tbl_hrule(struct termp *tp, const struct width = tp->tbl.cols[hp->ident].width; switch (hp->pos) { case (TBL_HEAD_DATA): - if (hp->next) - width += 2; tbl_char(tp, c, width); break; case (TBL_HEAD_DVERT): @@ -375,9 +373,9 @@ tbl_literal(struct termp *tp, const stru break; case (TBL_CELL_CENTRE): padr = col->width - term_strlen(tp, dp->string); - if (3 > padr) + if (2 > padr) break; - padl = (padr - 1) / 2; + padl = padr / 2; padr -= padl; break; case (TBL_CELL_RIGHT): @@ -390,7 +388,7 @@ tbl_literal(struct termp *tp, const stru tbl_char(tp, ASCII_NBRSP, padl); term_word(tp, dp->string); - tbl_char(tp, ASCII_NBRSP, padr + 2); + tbl_char(tp, ASCII_NBRSP, padr); } static void