Lua.hpp: Only output indentation when newLines is set to true
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
de658bd032
commit
4097b1c59a
|
@ -19,8 +19,10 @@ struct LuaTarget: Target {
|
|||
output << "function " << parseComponent.name << '(';
|
||||
separate_transpileTree(parseComponent.parameters, ", ");
|
||||
output << ')';
|
||||
if (not parseComponent.empty()) output << separator << indentation;
|
||||
else output << ' ';
|
||||
if (not parseComponent.empty()) {
|
||||
output << separator;
|
||||
if (newLines) output << indentation;
|
||||
} else output << ' ';
|
||||
separate_transpileTree(parseComponent, 1);
|
||||
if (not parseComponent.empty()) output << separator;
|
||||
output << "end";
|
||||
|
|
Loading…
Reference in New Issue