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 63e69669; for ; Sat, 21 Feb 2015 16:16:12 -0500 (EST) Date: Sat, 21 Feb 2015 16:16:12 -0500 (EST) Message-Id: <9367028331971413558.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: chomp trailing dots off the .Nd line X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- chomp trailing dots off the .Nd line Modified Files: -------------- pod2mdoc: pod2mdoc.c Revision Data ------------- Index: pod2mdoc.c =================================================================== RCS file: /home/cvs/mdocml/pod2mdoc/pod2mdoc.c,v retrieving revision 1.56 retrieving revision 1.57 diff -Lpod2mdoc.c -Lpod2mdoc.c -u -p -r1.56 -r1.57 --- pod2mdoc.c +++ pod2mdoc.c @@ -1440,6 +1440,8 @@ ordinary(struct state *st, const char *b while (start < end && isspace((unsigned char)buf[start])) start++; + while (start < end && '.' == buf[end - 1]) + end--; formatcodeln(st, "Nd", buf, &start, end, 1); mdoc_newln(st); return; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv