diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-18 11:46:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-18 11:46:44 +0000 |
commit | cfeaf11d67fe6b0933e3c8fd78c91969b57ce443 (patch) | |
tree | 55ad99f87b2d5338bfb628eb5a0b6b7953eb21a5 | |
parent | 5884f21bb5d782888f0d5979a8a2c7e28c0ee25b (diff) | |
download | mandoc-cfeaf11d67fe6b0933e3c8fd78c91969b57ce443.tar.gz mandoc-cfeaf11d67fe6b0933e3c8fd78c91969b57ce443.tar.zst mandoc-cfeaf11d67fe6b0933e3c8fd78c91969b57ce443.zip |
Fixed missing check for open ELINE scope in BLINE macro.
-rw-r--r-- | man_validate.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/man_validate.c b/man_validate.c index 9c8161ee..27b65e8d 100644 --- a/man_validate.c +++ b/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.17 2009/08/13 11:45:29 kristaps Exp $ */ +/* $Id: man_validate.c,v 1.18 2009/08/18 11:46:44 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -289,9 +289,9 @@ static int check_eline(CHKARGS) { - if ( ! (MAN_ELINE & m->flags)) - return(1); - return(man_nerr(m, n, WLNSCOPE)); + if (MAN_ELINE & m->flags) + return(man_nerr(m, n, WLNSCOPE)); + return(1); } @@ -299,8 +299,10 @@ static int check_bline(CHKARGS) { - if ( ! (MAN_BLINE & m->flags)) - return(1); - return(man_nerr(m, n, WLNSCOPE)); + if (MAN_BLINE & m->flags) + return(man_nerr(m, n, WLNSCOPE)); + if (MAN_ELINE & m->flags) + return(man_nerr(m, n, WLNSCOPE)); + return(1); } |