Fix Issue 1005
Merge pull request #1006 from Sophist-UK/fix_parse_errors_in_ini

Fix Issue 1005