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
Ben Hoyt
0b9092e80a
Revert test baseline tweak
2021-02-27 17:22:53 +13:00
Ben Hoyt
2f1ee9b1c9
Modify test baseline to ensure GH Actions fails
2021-02-27 17:21:58 +13: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
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
9b0825f08d
Fix issue 25: Be sure to call isspace() with unsigned char -- nasty things happen when char type is "signed char" like MSVC's default.
...
Add unit tests including some non-ASCII UTF-8 chars to repro with MSVC.
2013-01-06 08:40:00 +00:00
benhoyt@gmail.com
23d69228bf
Fixed char/unsigned char issue with r20. Added unit test for BOM handling.
2012-06-19 13:48:44 +00:00
benhoyt
0a54de5b78
Fixed issue 16: properly handle comments on multi-line values.
...
Added batch file to run unit tests.
2012-01-02 20:15:12 +00:00
benhoyt
d83f6c327e
Added kerrigan29a's patch to allow name:value style lines as per Python's ConfigParser.
...
Added tests for the above and updated baselines.
2011-03-10 02:58:58 +00:00
benhoyt@gmail.com
d1939f4857
Fix issue 5:
...
* ';' comments must have ';' preceded by whitespace char
* add '#' comments as per Python's ConfigParser
* added unit tests for the above
2010-09-27 13:56:09 +00:00
benhoyt
4d08274b35
Moved examples to their own examples/ dir.
...
Only define INI_ALLOW_MULTILINE if it's not already defined.
Added C++ INIReader class.
Moved license into LICENSE.txt, added README.txt.
Added unit tests and checked in baseline files.
Made line lengths < 80 chars.
2009-08-20 21:59:32 +00:00