]> git.cameronkatri.com Git - mandoc.git/commitdiff
Temporarily remove check for r->tbl at end of parse since we need the
authorKristaps Dzonsons <kristaps@bsd.lv>
Tue, 28 Dec 2010 10:59:07 +0000 (10:59 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Tue, 28 Dec 2010 10:59:07 +0000 (10:59 +0000)
original parse point to generate a useful error message.

roff.c

diff --git a/roff.c b/roff.c
index c7e0dd00ad6ea7ddc2e0c3c281120ef14ece87a8..aabf08803a3f7e8bdcb603102bafb72969cd355f 100644 (file)
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/*     $Id: roff.c,v 1.109 2010/12/28 10:51:03 kristaps Exp $ */
+/*     $Id: roff.c,v 1.110 2010/12/28 10:59:07 kristaps Exp $ */
 /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -510,7 +510,8 @@ int
 roff_endparse(struct roff *r)
 {
 
-       if (r->last || r->tbl)
+       /* FIXME: if r->tbl */
+       if (r->last)
                (*r->msg)(MANDOCERR_SCOPEEXIT, r->data, 
                                r->last->line, r->last->col, NULL);
        return(1);