]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_validate.c
Since resetting of offsets works quite differently in man(7) and mdoc(7),
[mandoc.git] / man_validate.c
index 253aca35bb115e4317fec6b1afcf89dec6849f4a..4bfaf764e6c8c542efad2d0960eeb99d5e85e019 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: man_validate.c,v 1.145 2018/12/31 08:38:21 schwarze Exp $ */
+/*     $Id: man_validate.c,v 1.146 2018/12/31 10:04:39 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010, 2012-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -153,7 +153,6 @@ man_validate(struct roff_man *man)
        default:
                if (n->tok < ROFF_MAX) {
                        roff_validate(man);
-                       man_state(man, n);
                        break;
                }
                assert(n->tok >= MAN_TH && n->tok < MAN_MAX);
@@ -161,7 +160,7 @@ man_validate(struct roff_man *man)
                if (*cp)
                        (*cp)(man, n);
                if (man->last == n)
-                       man_state(man, n);
+                       n->flags |= NODE_VALID;
                break;
        }
 }