From 0a60a4d86aa07468be2f890f10d7b1789095f7ec Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 27 Jun 2015 13:29:14 +0000 Subject: Ignore blank characters at the beginning of a conditional block, that is, after "\{". Issue found by Markus in bash(1). --- roff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roff.c b/roff.c index 8200f6db..0077edc9 100644 --- a/roff.c +++ b/roff.c @@ -2265,6 +2265,8 @@ roff_cond(ROFF_ARGS) if (buf->buf[pos] == '\\' && buf->buf[pos + 1] == '{') { r->last->endspan = -1; pos += 2; + while (buf->buf[pos] == ' ') + pos++; goto out; } -- cgit