mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-17 22:22:53 +08:00
Issue 18: Fixed multi-line handling in C++ wrapper, per jeffhawke77.
This commit is contained in:
parent
0a54de5b78
commit
ff894434f9
@ -59,6 +59,9 @@ int INIReader::ValueHandler(void* user, const char* section, const char* name,
|
||||
const char* value)
|
||||
{
|
||||
INIReader* reader = (INIReader*)user;
|
||||
reader->_values[MakeKey(section, name)] = value;
|
||||
string key = MakeKey(section, name);
|
||||
if (reader->_values[key].size() > 0)
|
||||
reader->_values[key] += "\n";
|
||||
reader->_values[key] += value;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user