From 365ec00baacbf68996ec61890a67247e7e2c661e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 24 Aug 2010 12:18:48 +0000 Subject: Strip out the `\z' escape. This is the first recursive sequence, getting mandoc ready to handle pod2man's complex escapes. --- mandoc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 24e3d554..cd12a966 100644 --- a/mandoc.c +++ b/mandoc.c @@ -171,6 +171,13 @@ mandoc_special(char *p) case ('['): term = ']'; break; + case ('z'): + len = 1; + if ('\\' == *p) { + p += mandoc_special(p); + return(*p ? (int)(p - sv) : 0); + } + break; default: len = 1; p--; -- cgit