aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-22 14:03:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-22 14:03:50 +0000
commit78a0de5a604ee23de16896cd3b2f2f1b70fc1dca (patch)
treedd29e23f890e6f1e67bfa719f0aee69c0674d76e /out.c
parent6517639ca42037e224f73f48f9fe1c1bfab97b6a (diff)
downloadmandoc-78a0de5a604ee23de16896cd3b2f2f1b70fc1dca.tar.gz
mandoc-78a0de5a604ee23de16896cd3b2f2f1b70fc1dca.tar.zst
mandoc-78a0de5a604ee23de16896cd3b2f2f1b70fc1dca.zip
Accept "\s0" (i.e., properly ignore it). Found in the wild (e.g., gfdl.7).
Diffstat (limited to 'out.c')
-rw-r--r--out.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/out.c b/out.c
index 62fda5cf..d501aecc 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.21 2010/07/21 20:35:03 kristaps Exp $ */
+/* $Id: out.c,v 1.22 2010/07/22 14:03:50 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -255,6 +255,9 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz)
case ('\''):
term = '\'';
break;
+ case ('0'):
+ j++;
+ /* FALLTHROUGH */
default:
i--;
lim = 1;