From 05d2a3a9797d615c8e996c1a52e618b71daa7ac3 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 21 Jun 2005 22:18:15 +0000 Subject: [PATCH] applied patch #1225167 - halibut fails on macro usage at beginning of line git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4121 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/bin/halibut/input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Docs/src/bin/halibut/input.c b/Docs/src/bin/halibut/input.c index 3af9f2fa..6a13a6bb 100644 --- a/Docs/src/bin/halibut/input.c +++ b/Docs/src/bin/halibut/input.c @@ -731,6 +731,12 @@ static void read_file(paragraph *** ret, input * in, indexdata * idx) continue; } + while (t.type == tok_cmd && macrolookup(macros, in, t.text, &t.pos)) + { + dtor(t), t = get_token(in); + } + + /* * This token begins a paragraph. See if it's one of the * special commands that define a paragraph type.