mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: remove needless empty line from serialization
This commit is contained in:
@@ -411,8 +411,11 @@ struct serializer
|
|||||||
token += key_and_sep;
|
token += key_and_sep;
|
||||||
token += visit(serializer(residual_width, this->float_prec_, true),
|
token += visit(serializer(residual_width, this->float_prec_, true),
|
||||||
kv.second);
|
kv.second);
|
||||||
|
if(token.back() != '\n')
|
||||||
|
{
|
||||||
token += '\n';
|
token += '\n';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// normal tables / array of tables
|
// normal tables / array of tables
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user