mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-10 17:30:13 +00:00
fix: remove needless empty line from serialization
This commit is contained in:
parent
251e55da42
commit
19ad7d7c96
@ -411,7 +411,10 @@ struct serializer
|
||||
token += key_and_sep;
|
||||
token += visit(serializer(residual_width, this->float_prec_, true),
|
||||
kv.second);
|
||||
token += '\n';
|
||||
if(token.back() != '\n')
|
||||
{
|
||||
token += '\n';
|
||||
}
|
||||
}
|
||||
|
||||
// normal tables / array of tables
|
||||
|
Loading…
Reference in New Issue
Block a user