source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Bugfix: When the invocation of a user-defined macro follows a
@ 2015-01-07 12:20 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-01-07 12:20 UTC (permalink / raw)
  To: source

Log Message:
-----------
Bugfix: When the invocation of a user-defined macro follows a roff
conditional request on the same input line, don't skip the first few
bytes of its content.

Modified Files:
--------------
    mdocml:
        roff.c

Revision Data
-------------
Index: roff.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/roff.c,v
retrieving revision 1.247
retrieving revision 1.248
diff -Lroff.c -Lroff.c -u -p -r1.247 -r1.248
--- roff.c
+++ roff.c
@@ -2169,6 +2169,7 @@ roff_userdef(ROFF_ARGS)
 	buf->buf = n1;
 	if (buf->sz == 0)
 		buf->sz = strlen(buf->buf) + 1;
+	*offs = 0;
 
 	return(buf->sz > 1 && buf->buf[buf->sz - 2] == '\n' ?
 	   ROFF_REPARSE : ROFF_APPEND);
--
 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-01-07 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-07 12:20 mdocml: Bugfix: When the invocation of a user-defined macro follows a 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).