summaryrefslogtreecommitdiffstats
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
commitcb01f45cffcd88cbb79672cba03cc2856d4f5cb2 (patch)
tree89cd1391267b858a31b33ebb8fd656614d1a11b9
parentec27c223d9975f7ea3d01a2a6ad864bbe4a96eb5 (diff)
downloadmandoc-cb01f45cffcd88cbb79672cba03cc2856d4f5cb2.tar.gz
Accept "\s0" (i.e., properly ignore it). Found in the wild (e.g., gfdl.7).
-rw-r--r--mandoc.c3
-rw-r--r--out.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/mandoc.c b/mandoc.c
index fd1423b7..e0a181c4 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -109,6 +109,9 @@ mandoc_special(char *p)
case ('\''):
term = '\'';
break;
+ case ('0'):
+ i++;
+ /* FALLTHROUGH */
default:
len = 1;
p--;
diff --git a/out.c b/out.c
index ace17bb2..98436001 100644
--- a/out.c
+++ b/out.c
@@ -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;