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.
This commit is contained in:
Peter Nelson 2023-10-31 01:19:04 +00:00 committed by GitHub
parent e81313e93e
commit 35a7770fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}