Fix comments not being serialized correctly

This commit is contained in:
2025-11-14 00:57:55 +01:00
committed by GitHub
parent 302b2b9a94
commit 8d9d29a684

View File

@@ -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
#endif // MINIPP_IMPLEMENTATION