From 35a7770fde294df2d52a1b9e2c23a7ec9bc22102 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Tue, 31 Oct 2023 01:19:04 +0000 Subject: [PATCH] Fix 233aac5: Set newline default comment for new groups. (#11411) The newline space between ini groups is actually recorded as a comment of the group. This got inadvertantly dropped in #11364. --- src/ini_load.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ini_load.cpp b/src/ini_load.cpp index c3a8d8103c..cc7d681467 100644 --- a/src/ini_load.cpp +++ b/src/ini_load.cpp @@ -39,7 +39,7 @@ void IniItem::SetValue(const std::string_view value) * @param parent the file we belong to * @param name the name of the group */ -IniGroup::IniGroup(const std::string &name, IniGroupType type) : type(type) +IniGroup::IniGroup(const std::string &name, IniGroupType type) : type(type), comment("\n") { this->name = StrMakeValid(name); }