fix: add a quick temporary patch for comment dup

first aid for #131
This commit is contained in:
ToruNiina 2020-09-22 17:36:24 +09:00
parent c037913b2c
commit a6d38c1ec0

View File

@ -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())
{