summaryrefslogtreecommitdiffstats
path: root/tbl_layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_layout.c')
-rw-r--r--tbl_layout.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c
index 25b77e1c..7063aaff 100644
--- a/tbl_layout.c
+++ b/tbl_layout.c
@@ -220,6 +220,16 @@ cell(struct tbl_node *tbl, struct tbl_row *rp,
}
}
+ /*
+ * If a vertical spanner is found, we may not be in the first
+ * row.
+ */
+
+ if (TBL_CELL_DOWN == c && rp == tbl->first_row) {
+ TBL_MSG(tbl, MANDOCERR_TBLLAYOUT, ln, *pos);
+ return(0);
+ }
+
(*pos)++;
/* Extra check for the double-vertical. */