source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* pod2mdoc: After converting a formatcode to a macro in ordinary mode,
@ 2015-02-19 11:10 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-02-19 11:10 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-19 11:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 11:10 pod2mdoc: After converting a formatcode to a macro in ordinary mode, 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).