From 9e21548672490d99d4a59ab449c80b3721689818 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'man.c') 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 * @@ -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 v1.2.3