From e6c9abbf114c99a1129abc43042a13152945a5f0 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 7 Jan 2015 12:19:46 +0000 Subject: 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. --- roff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/roff.c b/roff.c index 518a8fd1..d0ddc4a3 100644 --- a/roff.c +++ b/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); -- cgit