]> git.cameronkatri.com Git - mandoc.git/blobdiff - out.c
clarify the difference between .Cm and .Ic;
[mandoc.git] / out.c
diff --git a/out.c b/out.c
index 9ab256270586a4a1d91c08896fd7851a3ad1cc51..d0b0d0a2ace3c1c86ef330e2456660e7ef985b78 100644 (file)
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/*     $Id: out.c,v 1.76 2018/12/12 21:54:35 schwarze Exp $ */
+/*     $Id: out.c,v 1.78 2019/03/29 21:27:06 schwarze Exp $ */
 /*
  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -27,7 +27,6 @@
 #include <time.h>
 
 #include "mandoc_aux.h"
-#include "mandoc.h"
 #include "tbl.h"
 #include "out.h"
 
@@ -150,7 +149,7 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first,
                gp = &first_group;
                for (dp = sp->first; dp != NULL; dp = dp->next) {
                        icol = dp->layout->col;
-                       while (icol > maxcol)
+                       while (maxcol < icol + dp->hspans)
                                tbl->cols[++maxcol].spacing = SIZE_MAX;
                        col = tbl->cols + icol;
                        col->flags |= dp->layout->flags;