From: simon Date: Fri, 21 Nov 2008 19:25:26 +0000 (+0000) Subject: Correct mishandling of paragraphs beginning with "\#{". X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/b049296ecb39e76ac76f6b78017efc41906c716e Correct mishandling of paragraphs beginning with "\#{". (Embarrassingly, this was showing up in inputs/test.but itself.) git-svn-id: svn://svn.tartarus.org/sgt/halibut@8312 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/input.c b/input.c index 337517d..f43604f 100644 --- a/input.c +++ b/input.c @@ -835,8 +835,10 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx, needkw = 4; break; case c__comment: - if (isbrace(in)) + if (isbrace(in)) { + needkw = -1; break; /* `\#{': isn't a comment para */ + } do { dtor(t), t = get_token(in); } while (t.type != tok_eop && t.type != tok_eof);