benhoyt / inih

Simple .INI file parser in C, good for embedded systems
Other
2.43k stars 487 forks source link

When loading the ini file,, all the spaces in the value will be deleted #174

Closed ChongYuanLi closed 3 months ago

ChongYuanLi commented 3 months ago

When loading the ini file, if there are spaces in the value, all the spaces in the value will be deleted

benhoyt commented 3 months ago

The whitespace at the start and end of the value will be removed, but not the spaces in the middle. For example, given:

[section]
key    =    This is the value.  

The value sent through with be This is the value. -- this is by design.