mirror of
https://github.com/mariiaan/minipp.git
synced 2026-05-14 10:11:17 +02:00
Fix comments not being serialized correctly
This commit is contained in:
@@ -826,7 +826,7 @@ minipp::EResult minipp::MiniPPFile::WriteSection(const Section* section, std::of
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& comment : pair.second->m_comments)
|
for (const auto& comment : pair.second->m_comments)
|
||||||
ofs << comment << std::endl;
|
ofs << "# " << comment << std::endl;
|
||||||
|
|
||||||
ofs << pair.first << " = ";
|
ofs << pair.first << " = ";
|
||||||
auto result = pair.second->ToString(valueString);
|
auto result = pair.second->ToString(valueString);
|
||||||
@@ -1150,4 +1150,4 @@ bool minipp::MiniPPFile::Tools::IsIntegerDecimal(const std::string& str) noexcep
|
|||||||
}
|
}
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
#endif // MINIPP_IMPLEMENTATION
|
#endif // MINIPP_IMPLEMENTATION
|
||||||
|
|||||||
Reference in New Issue
Block a user