summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-04 09:01:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-04 09:01:55 +0000
commit9e21548672490d99d4a59ab449c80b3721689818 (patch)
tree8680f364835e7cc1a867ed96dbd5a3eaf8669759 /man.c
parentf2ddfbfe82c8d980d204eb501343ff94da2d568c (diff)
downloadmandoc-9e21548672490d99d4a59ab449c80b3721689818.tar.gz
mandoc-9e21548672490d99d4a59ab449c80b3721689818.tar.zst
mandoc-9e21548672490d99d4a59ab449c80b3721689818.zip
Moved escape validation into libmandoc.h/mandoc.c (common between libman/libmdoc1).
libman supports MAN_IGN_ESCAPE (like MDOC_IGN_ESCAPE). All popular escapes now handled consistently.
Diffstat (limited to 'man.c')
-rw-r--r--man.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man.c b/man.c
index bf53b87a..c20f1a43 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.25 2009/06/22 13:09:17 kristaps Exp $ */
+/* $Id: man.c,v 1.26 2009/07/04 09:01:55 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -472,6 +472,9 @@ man_err(struct man *m, int line, int pos,
case (WNOTITLE):
p = "document has no title/section";
break;
+ case (WESCAPE):
+ p = "invalid escape sequence";
+ break;
}
assert(p);