summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-06 22:02:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-06 22:02:58 +0000
commit7b8e2174fd0e7158995a5790c05254f664943dcc (patch)
treeaa19a7b18778510790f6b700129ecb8960351d29 /tree.c
parentda98c7539daf0f47de95ebfe6c514b48047dcea0 (diff)
downloadmandoc-7b8e2174fd0e7158995a5790c05254f664943dcc.tar.gz
Let the line-number of a tbl_span be remembered.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tree.c b/tree.c
index 8092591b..3b6aa0a8 100644
--- a/tree.c
+++ b/tree.c
@@ -266,8 +266,6 @@ print_span(const struct tbl_span *sp, int indent)
for (i = 0; i < indent; i++)
putchar('\t');
- printf("tbl: ");
-
switch (sp->pos) {
case (TBL_SPAN_HORIZ):
putchar('-');
@@ -300,7 +298,8 @@ print_span(const struct tbl_span *sp, int indent)
if (NULL == dp->layout)
putchar('*');
putchar(']');
- if (dp->next)
- putchar(' ');
+ putchar(' ');
}
+
+ printf("(tbl) %d:1", sp->line);
}