From 78a0de5a604ee23de16896cd3b2f2f1b70fc1dca Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 22 Jul 2010 14:03:50 +0000 Subject: Accept "\s0" (i.e., properly ignore it). Found in the wild (e.g., gfdl.7). --- mandoc.c | 5 ++++- out.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mandoc.c b/mandoc.c index 69972c04..68caf719 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.25 2010/07/21 20:35:03 kristaps Exp $ */ +/* $Id: mandoc.c,v 1.26 2010/07/22 14:03:50 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -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 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 * @@ -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; -- cgit v1.2.3