* pod2mdoc: chomp trailing dots off the .Nd line
@ 2015-02-21 21:16 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-02-21 21:16 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-21 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-21 21:16 pod2mdoc: chomp trailing dots off the .Nd line schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).