summaryrefslogtreecommitdiffstats
path: root/mdoc.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 /mdoc.c
parentda98c7539daf0f47de95ebfe6c514b48047dcea0 (diff)
downloadmandoc-7b8e2174fd0e7158995a5790c05254f664943dcc.tar.gz
Let the line-number of a tbl_span be remembered.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index 5494b633..6b858061 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -551,8 +551,7 @@ mdoc_span_alloc(struct mdoc *m, const struct tbl_span *sp)
{
struct mdoc_node *n;
- /* FIXME: grab from tbl_span. */
- n = node_alloc(m, 0, 0, MDOC_MAX, MDOC_TBL);
+ n = node_alloc(m, sp->line, 0, MDOC_MAX, MDOC_TBL);
n->span = sp;
if ( ! node_append(m, n))