From 8d9d29a68469339bf29c4c44f11de7db56c3c978 Mon Sep 17 00:00:00 2001 From: "Marian W." Date: Fri, 14 Nov 2025 00:57:55 +0100 Subject: [PATCH] Fix comments not being serialized correctly --- minipp/minipp.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minipp/minipp.hpp b/minipp/minipp.hpp index b4bf535..3671d84 100644 --- a/minipp/minipp.hpp +++ b/minipp/minipp.hpp @@ -826,7 +826,7 @@ minipp::EResult minipp::MiniPPFile::WriteSection(const Section* section, std::of } for (const auto& comment : pair.second->m_comments) - ofs << comment << std::endl; + ofs << "# " << comment << std::endl; ofs << pair.first << " = "; auto result = pair.second->ToString(valueString); @@ -1150,4 +1150,4 @@ bool minipp::MiniPPFile::Tools::IsIntegerDecimal(const std::string& str) noexcep } #pragma endregion -#endif // MINIPP_IMPLEMENTATION \ No newline at end of file +#endif // MINIPP_IMPLEMENTATION