From f283a257d2494f1038a6bafde22b29adbb473064 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 13 Oct 2020 22:01:50 +0900 Subject: [PATCH] Revert "quick temporary patch for comment dup" This reverts commit a6d38c1ec07cd6857311825d2d89deee59890493. Since the problem is solved, we don't need this patch any more. --- toml/serializer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/serializer.hpp b/toml/serializer.hpp index 77cc71e..ed07f46 100644 --- a/toml/serializer.hpp +++ b/toml/serializer.hpp @@ -651,7 +651,7 @@ struct serializer tmp += '\n'; } - if(!kv.second.comments().empty() && !no_comment_ && tmp.front() != '#') + if(!kv.second.comments().empty() && !no_comment_) { for(const auto& c : kv.second.comments()) {