diff --git a/restemplate.lpr b/restemplate.lpr index b00445d..3a0b829 100644 --- a/restemplate.lpr +++ b/restemplate.lpr @@ -306,8 +306,11 @@ begin while not EOF(data) do begin ReadLn(data, line); - if commandMode and (line <> '') and not ProcessCommand(line) then + if commandMode and (line <> '') and (line[1] <> '#') and + not ProcessCommand(line) then + begin commandMode := False; + end; if not commandMode then content.Add(line);