]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_validate.c
"sys/param.h is for kernel interface programs.
[mandoc.git] / mdoc_validate.c
index d90107dbbcb18e69c6026d51749e68dc75cebadf..6d1fea501fd8fc2deda67c43b44814efe513c1de 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_validate.c,v 1.114 2010/07/26 13:45:49 kristaps Exp $ */
+/*     $Id: mdoc_validate.c,v 1.115 2010/08/20 01:02:07 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -481,12 +481,8 @@ check_text(struct mdoc *m, int ln, int pos, char *p)
                if (c) {
                        p += c - 1;
                        pos += c - 1;
-                       continue;
-               }
-
-               c = mdoc_pmsg(m, ln, pos, MANDOCERR_BADESCAPE);
-               if ( ! (MDOC_IGN_ESCAPE & m->pflags) && ! c)
-                       return(c);
+               } else
+                       mdoc_pmsg(m, ln, pos, MANDOCERR_BADESCAPE);
        }
 
        return(1);