From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o7OD71me030985 for ; Tue, 24 Aug 2010 09:07:02 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o7OD71bH012992; Tue, 24 Aug 2010 09:07:01 -0400 (EDT) Date: Tue, 24 Aug 2010 09:07:01 -0400 (EDT) Message-Id: <201008241307.o7OD71bH012992@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Stripping out of `\w' groff escape. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Stripping out of `\w' groff escape. Yet another for pod2man... Modified Files: -------------- mdocml: man.7 mandoc.c mdoc.7 out.c Revision Data ------------- Index: mandoc.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v retrieving revision 1.30 retrieving revision 1.31 diff -Lmandoc.c -Lmandoc.c -u -p -r1.30 -r1.31 --- mandoc.c +++ 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--; Index: man.7 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man.7,v retrieving revision 1.83 retrieving revision 1.84 diff -Lman.7 -Lman.7 -u -p -r1.83 -r1.84 --- man.7 +++ man.7 @@ -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 Index: out.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/out.c,v retrieving revision 1.25 retrieving revision 1.26 diff -Lout.c -Lout.c -u -p -r1.25 -r1.26 --- out.c +++ out.c @@ -293,6 +293,12 @@ a2roffdeco(enum roffdeco *d, const char } else lim = 1; break; + case ('w'): + if ('\'' == wp[i++]) { + term = '\''; + break; + } + /* FALLTHROUGH */ default: *d = DECO_SSPECIAL; i--; Index: mdoc.7 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc.7,v retrieving revision 1.152 retrieving revision 1.153 diff -Lmdoc.7 -Lmdoc.7 -u -p -r1.152 -r1.153 --- mdoc.7 +++ mdoc.7 @@ -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 -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv