]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_validate.c
enclosures sometimes cause bogus end-of-sentence
[mandoc.git] / man_validate.c
index b6883ff89547161055c3827e2aa7c7db26760de3..e5b1d65e67928549368fb626fe5f5790b1c50c21 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: man_validate.c,v 1.48 2010/07/31 23:52:58 schwarze Exp $ */
+/*     $Id: man_validate.c,v 1.49 2010/08/20 01:02:07 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -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);