aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-30 04:11:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-30 04:11:50 +0000
commit71fa4361c47e9ed2f3c6521e9273fabb41aadc20 (patch)
treeac472a0b2793a26633a7405d837eaa7fa648ea74 /out.c
parent8ea5dc6d40c942157256ddd510bd3fa16cb44303 (diff)
downloadmandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.tar.gz
mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.tar.zst
mandoc-71fa4361c47e9ed2f3c6521e9273fabb41aadc20.zip
Abolish struct tbl_head and replace it by an "int col" member in
struct tbl_cell. No functional change, minus 40 lines of code.
Diffstat (limited to 'out.c')
-rw-r--r--out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/out.c b/out.c
index 12c4d8f8..53b93fbe 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.58 2015/01/28 02:23:49 schwarze Exp $ */
+/* $Id: out.c,v 1.59 2015/01/30 04:11:50 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -140,7 +140,7 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp,
spans = dp->spans;
if (1 < spans)
continue;
- icol = dp->layout->head->ident;
+ icol = dp->layout->col;
if (maxcol < icol)
maxcol = icol;
col = tbl->cols + icol;