From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id dc8d9b73; for ; Thu, 19 Feb 2015 06:10:14 -0500 (EST) Date: Thu, 19 Feb 2015 06:10:14 -0500 (EST) Message-Id: <449451147927289132.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: pod2mdoc: After converting a formatcode to a macro in ordinary mode, X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- After converting a formatcode to a macro in ordinary mode, handle all middle and closing punctuation characters. Modified Files: -------------- pod2mdoc: pod2mdoc.c Revision Data ------------- Index: pod2mdoc.c =================================================================== RCS file: /home/cvs/mdocml/pod2mdoc/pod2mdoc.c,v retrieving revision 1.50 retrieving revision 1.51 diff -Lpod2mdoc.c -Lpod2mdoc.c -u -p -r1.50 -r1.51 --- pod2mdoc.c +++ pod2mdoc.c @@ -1532,12 +1532,11 @@ ordinary(struct state *st, const char *b * XXX Some punctuation characters * are not handled yet. */ - if ((start == end - 1 || - (start < end - 1 && - (' ' == buf[start + 1] || - '\n' == buf[start + 1]))) && - ('.' == buf[start] || - ',' == buf[start])) { + if ((start == end - 1 || + (start < end - 1 && + (' ' == buf[start + 1] || + '\n' == buf[start + 1]))) && + NULL != strchr("|.,;:?!)]", buf[start])) { putchar(' '); putchar(buf[start++]); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv