diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-06 22:05:20 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-06 22:05:20 +0000 |
commit | 0e41b47c56cfe4131e7f3424fde8ce7fbc7a94e3 (patch) | |
tree | 745274842b2c5469ec195887b0c305e2c9509163 /mdoc.c | |
parent | 7b8e2174fd0e7158995a5790c05254f664943dcc (diff) | |
download | mandoc-0e41b47c56cfe4131e7f3424fde8ce7fbc7a94e3.tar.gz |
Use tbl_span line number for warnings/errors.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -233,8 +233,7 @@ mdoc_addspan(struct mdoc *m, const struct tbl_span *sp) /* No text before an initial macro. */ if (SEC_NONE == m->lastnamed) { - /* FIXME: grab from span. */ - mdoc_pmsg(m, 0, 0, MANDOCERR_NOTEXT); + mdoc_pmsg(m, sp->line, 0, MANDOCERR_NOTEXT); return(1); } |