diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-04 09:01:55 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-04 09:01:55 +0000 |
commit | 9e21548672490d99d4a59ab449c80b3721689818 (patch) | |
tree | 8680f364835e7cc1a867ed96dbd5a3eaf8669759 /man.c | |
parent | f2ddfbfe82c8d980d204eb501343ff94da2d568c (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |