summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-08-24 13:07:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-08-24 13:07:01 +0000
commit600f607aef5b555ce32a82f81cefbe0ecdf8b6b1 (patch)
tree514470ecf651c908e207da8e1f229ce943e06fbc /mandoc.c
parent66d75094ce5444c76b0a0e54353e0043d11e8e04 (diff)
downloadmandoc-600f607aef5b555ce32a82f81cefbe0ecdf8b6b1.tar.gz
Stripping out of `\w' groff escape. Yet another for pod2man...
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mandoc.c b/mandoc.c
index cd12a966..0be9c287 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -55,8 +55,6 @@ mandoc_special(char *p)
/* FALLTHROUGH */
case ('x'):
/* FALLTHROUGH */
- case ('w'):
- /* FALLTHROUGH */
case ('S'):
/* FALLTHROUGH */
case ('R'):
@@ -178,6 +176,12 @@ mandoc_special(char *p)
return(*p ? (int)(p - sv) : 0);
}
break;
+ case ('w'):
+ if ('\'' == *p++) {
+ term = '\'';
+ break;
+ }
+ /* FALLTHROUGH */
default:
len = 1;
p--;