Open sbachstein opened 3 years ago
Version 0.3.58
This affects all available converters. I use JSON here as an example:
import pyhocon config = pyhocon.ConfigTree() config.put('foo', 'bar') pyhocon.HOCONConverter.convert(config, 'json')
Result: '{\n "foo": "bar"\n}'
'{\n "foo": "bar"\n}'
Expected: '{\n "foo": "bar"\n}\n'
'{\n "foo": "bar"\n}\n'
The new line character is desirable for a number of reasons, one of them it being the POSIX standard. For a larger discussion, see, for example, this thread: https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline
Version 0.3.58
This affects all available converters. I use JSON here as an example:
Result:
'{\n "foo": "bar"\n}'
Expected:
'{\n "foo": "bar"\n}\n'
The new line character is desirable for a number of reasons, one of them it being the POSIX standard. For a larger discussion, see, for example, this thread: https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline