=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/tbl_term.c,v retrieving revision 1.36 retrieving revision 1.37 diff -c -r1.36 -r1.37 *** src/usr.bin/mandoc/tbl_term.c 2017/06/12 20:14:03 1.36 --- src/usr.bin/mandoc/tbl_term.c 2017/06/12 20:44:57 1.37 *************** *** 1,4 **** ! /* $OpenBSD: tbl_term.c,v 1.36 2017/06/12 20:14:03 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011,2012,2014,2015,2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: tbl_term.c,v 1.37 2017/06/12 20:44:57 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011,2012,2014,2015,2017 Ingo Schwarze *************** *** 240,245 **** --- 240,247 ---- cp = cp->next; } else vert = 0; + if (sp->opts->opts & TBL_OPT_ALLBOX) + vert = 1; if (vert == 0) continue; *************** *** 298,304 **** free(tp->tbl.cols); tp->tbl.cols = NULL; tp->tcol->offset = offset; ! } tp->flags &= ~TERMP_NONOSPACE; } --- 300,308 ---- free(tp->tbl.cols); tp->tbl.cols = NULL; tp->tcol->offset = offset; ! } else if (horiz == 0 && sp->opts->opts & TBL_OPT_ALLBOX) ! tbl_hrule(tp, sp, 1); ! tp->flags &= ~TERMP_NONOSPACE; } *************** *** 334,339 **** --- 338,345 ---- vert = c2->vert; c2 = c2->next; } + if (sp->opts->opts & TBL_OPT_ALLBOX && !vert) + vert = 1; if (vert) tbl_char(tp, cross, vert); if (vert < 2)