]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_validate.c
"sys/param.h is for kernel interface programs.
[mandoc.git] / man_validate.c
index 0e0010dd87f1af19cea1788547188cc6ade1f57a..e5b1d65e67928549368fb626fe5f5790b1c50c21 100644 (file)
@@ -1,6 +1,6 @@
-/*     $Id: man_validate.c,v 1.47 2010/07/22 23:03:15 kristaps Exp $ */
+/*     $Id: man_validate.c,v 1.49 2010/08/20 01:02:07 schwarze Exp $ */
 /*
- * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -233,12 +233,8 @@ check_text(CHKARGS)
                if (c) {
                        p += c - 1;
                        pos += c - 1;
-                       continue;
-               }
-
-               c = man_pmsg(m, n->line, pos, MANDOCERR_BADESCAPE);
-               if ( ! (MAN_IGN_ESCAPE & m->pflags) && ! c)
-                       return(c);
+               } else
+                       man_pmsg(m, n->line, pos, MANDOCERR_BADESCAPE);
        }
 
        return(1);