1
0
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:
benhoyt 2012-03-07 02:02:37 +00:00
parent 0a54de5b78
commit ff894434f9

View File

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