When setting a value containing newlines, they can be retrieved just as they were set until being saved to a file. When the newlines are saved to file and read back, they are interpreted as separate lines and no longer parts of the value.
IniFile iniFile = new IniFile();
string value = "one
two
three";
iniFile.setValue('test', value);
iniFile.save();
// Reload file from disk
iniFile = new IniFile();
string after = iniFile.getValue('test');
At this point, after contains "one" instead of "one\ntwo\nthree".
When setting a value containing newlines, they can be retrieved just as they were set until being saved to a file. When the newlines are saved to file and read back, they are interpreted as separate lines and no longer parts of the value.
At this point,
aftercontains "one" instead of "one\ntwo\nthree".