summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man.c2
-rw-r--r--mdoc.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/man.c b/man.c
index 7336590e..6b09300b 100644
--- a/man.c
+++ b/man.c
@@ -371,7 +371,7 @@ man_addspan(struct man *m, const struct tbl_span *sp)
assert( ! (MAN_HALT & m->flags));
if ( ! man_span_alloc(m, sp))
return(0);
- return(man_descope(m, 0, 0));
+ return(man_descope(m, sp->line, 0));
}
static int
diff --git a/mdoc.c b/mdoc.c
index 6b858061..825c6558 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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);
}