summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index ed5988ce..c500b945 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -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);