diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-08-24 13:07:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-08-24 13:07:01 +0000 |
commit | 600f607aef5b555ce32a82f81cefbe0ecdf8b6b1 (patch) | |
tree | 514470ecf651c908e207da8e1f229ce943e06fbc | |
parent | 66d75094ce5444c76b0a0e54353e0043d11e8e04 (diff) | |
download | mandoc-600f607aef5b555ce32a82f81cefbe0ecdf8b6b1.tar.gz |
Stripping out of `\w' groff escape. Yet another for pod2man...
-rw-r--r-- | man.7 | 5 | ||||
-rw-r--r-- | mandoc.c | 8 | ||||
-rw-r--r-- | mdoc.7 | 5 | ||||
-rw-r--r-- | out.c | 6 |
4 files changed, 18 insertions, 6 deletions
@@ -938,11 +938,12 @@ The .Pq text filling colour , .Sq \ez .Pq zero-length character , +.Sq \ew +.Pq string length , and .Sq \es .Pq text size -.Sx Text Decoration -escapes are all discarded in mandoc. +escape sequences are all discarded in mandoc. .It The .Sq \ef @@ -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--; @@ -2846,11 +2846,12 @@ The .Pq text filling colour , .Sq \ez .Pq zero-length character , +.Sq \ew +.Pq string length , and .Sq \es .Pq text size -.Sx Text Decoration -escapes are all discarded in mandoc. +escape sequences are all discarded in mandoc. .It The .Sq \ef @@ -293,6 +293,12 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz) } else lim = 1; break; + case ('w'): + if ('\'' == wp[i++]) { + term = '\''; + break; + } + /* FALLTHROUGH */ default: *d = DECO_SSPECIAL; i--; |