From 4731011d94a8295f8bf499ee10709029a5ac9f4a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 4 Jul 2009 09:01:55 +0000 Subject: 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. --- man.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'man.c') 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); -- cgit