diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-08-24 12:18:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-08-24 12:18:48 +0000 |
commit | 365ec00baacbf68996ec61890a67247e7e2c661e (patch) | |
tree | 7fdcc64ce141ad6debe079afe807e15f731c83ed /mandoc.c | |
parent | f9ee142a678bde254843fe0f848892b81b4af004 (diff) | |
download | mandoc-365ec00baacbf68996ec61890a67247e7e2c661e.tar.gz |
Strip out the `\z' escape. This is the first recursive sequence,
getting mandoc ready to handle pod2man's complex escapes.
Diffstat (limited to 'mandoc.c')
-rw-r--r-- | mandoc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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--; |