From 7794af01645f7ec7af31393921bc662b4e970d47 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 0619420c..57a7e56c 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.92 2015/02/20 23:55:10 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.93 2015/08/29 22:40:05 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015 Ingo Schwarze @@ -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 v1.2.3-56-ge451