diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-06-27 13:29:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-06-27 13:29:14 +0000 |
commit | 0a60a4d86aa07468be2f890f10d7b1789095f7ec (patch) | |
tree | 6fcea8d7c7b5387bf9fd915765b880830ad8bd26 | |
parent | 1c1cbd90a18a89a68fe6354f954712c9d22b1906 (diff) | |
download | mandoc-0a60a4d86aa07468be2f890f10d7b1789095f7ec.tar.gz |
Ignore blank characters at the beginning of a conditional block,
that is, after "\{".
Issue found by Markus <Waldeck at gmx dot de> in bash(1).
-rw-r--r-- | roff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |