summaryrefslogtreecommitdiffstats
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
commit4731011d94a8295f8bf499ee10709029a5ac9f4a (patch)
tree029371328cc51743d850eecdc97ab2d9d1d7256b /man.c
parentb446ffedf453a9238f7514a3d1ca6d8ac7489f03 (diff)
downloadmandoc-4731011d94a8295f8bf499ee10709029a5ac9f4a.tar.gz
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/man.c b/man.c
index 45ce4872..b3f103c7 100644
--- a/man.c
+++ b/man.c
@@ -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);