1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-01-17 22:22:53 +08:00

8 Commits

Author SHA1 Message Date
Isidro
f93ad9312e
Test that long sections are truncated (#180)
* test that long sections are truncated

at MAX_SECTION=50

* generated .txt executing unittest.sh

* expected result

* Sections will be ignores when len(section) > len(INI_MAX_LINE)

---------

Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
2024-10-27 09:52:11 +01:00
Ben Hoyt
bd798c5377
Make inline comments work on subsequent lines of multiline values (#140)
This is a bug fix that makes inih's behaviour here work as per Python's
ConfigParser, which is what inih behaviour is (loosely) based on.

Thanks @silly2020 for the report. See
https://github.com/benhoyt/inih/issues/120#issuecomment-1181341960
2022-07-12 21:20:05 +12:00
Anatol Belski
82fdde3fcf Allow handler to be called on a key without '=' or ':' (#87) 2019-10-05 10:27:07 -04:00
ksdhans
be59185856 Add option to call handler when a new section is encountered (#79)
Some programs have ini files with multiple sections that have the same name, which would make it very useful to know when a new section is encountered.

This patch adds this ability as an option that's enabled by setting INI_CALL_HANDLER_ON_NEW_SECTION to 1
2019-04-08 08:44:21 -04:00
Ben Hoyt
18a67c5163 Fix \r\n EOLs in baseline_stop_on_first_error.txt 2016-10-11 09:33:33 -04:00
Ben Hoyt
dbf771afeb Issue #55: handle empty value immediately followed by comment 2016-10-11 09:31:22 -04:00
Ben Hoyt
e6735fff64 Fix issue noted by @jgroffen where if both : and = were used on a line, = would take precedence ( https://github.com/benhoyt/inih/pull/44) 2016-01-02 11:29:40 -05:00
benhoyt@gmail.com
f2914d460c Add INI_STOP_ON_FIRST_ERROR per Robin Getz (defaults to off).
Add unit test baseline with this option on.
See also f4b25de039
2013-12-19 19:38:21 +00:00