source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* pod2mdoc: Properly consume whitespace at the end of ignored format codes
@ 2014-04-07 11:58 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2014-04-07 11:58 UTC (permalink / raw)
  To: source

Log Message:
-----------
Properly consume whitespace at the end of ignored format codes X<> and N<>.

Modified Files:
--------------
    pod2mdoc:
        pod2mdoc.c

Revision Data
-------------
Index: pod2mdoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/pod2mdoc/pod2mdoc.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -Lpod2mdoc.c -Lpod2mdoc.c -u -p -r1.23 -r1.24
--- pod2mdoc.c
+++ pod2mdoc.c
@@ -460,6 +460,13 @@ formatcode(struct state *st, const char 
 			(*start) += dsz;
 			break;
 		}
+		if (*start < end) {
+			assert('>' == buf[*start]);
+			(*start)++;
+		}
+		if (isspace(last))
+			while (*start < end && isspace((int)buf[*start]))
+				(*start)++;
 		return(0);
 	}
 
--
 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:[~2014-04-07 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-07 11:58 pod2mdoc: Properly consume whitespace at the end of ignored format codes kristaps

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).