summaryrefslogtreecommitdiffstats
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
commit7db5146c651943cae039a73f4c2c3196cf08b086 (patch)
treea4066a40cec614fb288c4cb9a02533f67be9b9aa /mandoc.c
parented5bfd990cd4e6ba2ef4f67f0a93fd3b75795b15 (diff)
downloadmandoc-7db5146c651943cae039a73f4c2c3196cf08b086.tar.gz
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.c4
1 files changed, 4 insertions, 0 deletions
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);
/*