X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/c437c4c4d294b54c99a58f3130c82013a1bf7024..26c8c119efd44804c7b27f8637c69eda63f0c189:/input.c diff --git a/input.c b/input.c index 8556d9f..1410022 100644 --- a/input.c +++ b/input.c @@ -978,7 +978,8 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx, rdadd(¯otext, L'\n'); rdadds(¯otext, t.text); dtor(t), t = get_token(in); - if (t.type == tok_eop) break; + if (t.type == tok_eop || t.type == tok_eof) + break; } macrodef(macros, rs.text, macrotext.text, fp); continue; /* next paragraph */