aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-08-29 22:40:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-08-29 22:40:05 +0000
commit7794af01645f7ec7af31393921bc662b4e970d47 (patch)
tree8d224ddaaae5345ecee511bac8d8a38caa81410b /mandoc.c
parent71472a8560e814daaed28a4c8419af566b7da2a1 (diff)
downloadmandoc-7794af01645f7ec7af31393921bc662b4e970d47.tar.gz
mandoc-7794af01645f7ec7af31393921bc662b4e970d47.tar.zst
mandoc-7794af01645f7ec7af31393921bc662b4e970d47.zip
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 <pi at FreeBSD>.
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c6
1 files changed, 5 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
/*