mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-09 17:10:10 +00:00
parent
c037913b2c
commit
a6d38c1ec0
@ -651,7 +651,7 @@ struct serializer
|
||||
tmp += '\n';
|
||||
}
|
||||
|
||||
if(!kv.second.comments().empty() && !no_comment_)
|
||||
if(!kv.second.comments().empty() && !no_comment_ && tmp.front() != '#')
|
||||
{
|
||||
for(const auto& c : kv.second.comments())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user