From 7db5146c651943cae039a73f4c2c3196cf08b086 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 29 Aug 2015 22:40:05 +0000 Subject: Parse and ignore the escape sequences \, and \/ (italic corrections). Actually using these is very stupid because they are groff extensions and other roff(7) implementations typically print unintended characters at the places where they are used. Nevertheless, some manuals contain them, for example ocserv(8). Problem reported by Kurt Jaeger . --- mandoc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 8ced0496..3e838534 100644 --- a/mandoc.c +++ b/mandoc.c @@ -95,6 +95,10 @@ mandoc_escape(const char **end, const char **start, int *sz) case 'd': /* FALLTHROUGH */ case 'u': + /* FALLTHROUGH */ + case ',': + /* FALLTHROUGH */ + case '/': return(ESCAPE_IGNORE); /* -- cgit