Remove duplicate newl at end of code generation for a file
This commit is contained in:
parent
27fd67bad1
commit
59eee1f75a
2 changed files with 7 additions and 8 deletions
|
|
@ -60,8 +60,10 @@ namespace
|
|||
code_generator::output output(type_safe::ref(generator), type_safe::ref(f), true);
|
||||
if (output)
|
||||
{
|
||||
write_container(output, f, newl);
|
||||
output << newl;
|
||||
auto need_sep = write_container(output, f, newl);
|
||||
if (!need_sep)
|
||||
// file empty, write newl
|
||||
output << newl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue