From 470a6fe7f987f7c5e5c1fa7b6b31956479ababed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 23 Jul 2018 14:40:20 -0700 Subject: Fixed blocks starting with extra newline when they start with a comment. --- nomsu_compiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_compiler.lua') diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index daf7c5f..0299156 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -1104,7 +1104,7 @@ do elseif "Block" == _exp_0 then local nomsu = NomsuCode(tree.source, pop_comments(tree.source.start)) for i, line in ipairs(tree) do - nomsu:append(pop_comments(line.source.start, '\n')) + nomsu:append(pop_comments(line.source.start, i > 1 and '\n' or '')) local line_nomsu = recurse(line) nomsu:append(line_nomsu) if i < #tree then -- cgit v1.2.3