<p>Am 15.08.2017 11:57 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
><br>
><br>
><br>
> On Tue, 15 Aug 2017, Sven Barth via fpc-pascal wrote:<br>
><br>
>> Am 15.08.2017 11:17 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> On Mon, 14 Aug 2017, Graeme Geldenhuys wrote:<br>
>>><br>
>>>> On 2017-08-04 08:47, Michael Van Canneyt wrote:<br>
>>>>>><br>
>>>>>><br>
>>>>>> Is this considered a bug or "by design"?<br>
>>>>><br>
>>>>><br>
>>>>> This is by design.<br>
>>>>> As you said, whitespace is not so well defined.<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> Torsten, if you can, maybe switch to JSON files for config setting<br>
>><br>
>> instead. I have had fantastic success with JSON files in such a way. If it<br>
>> doesn't yet exist (it probably does), one could write a API wrapper (think<br>
>> Adapter design pattern) giving JSON files the same or very similar<br>
>> interface to TINIFile - it could be handy for a transition period.<br>
>>><br>
>>><br>
>>><br>
>>> You ask, we deliver. Revision 36913, package fcl-json.<br>
>>><br>
>>> Unit jsonini.pp contains TJSONIniFile. It is a descendent of<br>
>><br>
>> TCustomIniFile.<br>
>>><br>
>>><br>
>>> Class method TJSONIniFile.ConvertIni will convert an .ini file to a .json<br>
>><br>
>> file.<br>
>>><br>
>>> It attempts to use native types when possible.<br>
>>><br>
>>> ini2json example program included.<br>
>>><br>
>>> One item scratched off my long TODO list ;)<br>
>><br>
>><br>
>> Not entirely: "make install" fails. It complains about missing jsonini.rst<br>
>> file :P<br>
><br>
><br>
> Already fixed too :)</p>
<p>Thanks!</p>
<p>Regards,<br>
Sven</p>