From 5d2780eadfd496a6ef5d4aa4f11199fda8b0f276 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index ef9c020d..ab1cbfea 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.247 2015/01/01 19:28:49 schwarze Exp $ */ +/* $Id: roff.c,v 1.248 2015/01/07 12:19:46 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -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 v1.2.3