From 3734245a5a164c1ba48ac02cb3131143431b996b 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 53e7c7b6..5505c5f3 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.29 2010/08/20 01:02:07 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.30 2010/08/24 12:18:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -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 v1.2.3-56-ge451