This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ZeD
Recipients AlexWaygood, ZeD, bob.ippolito, ezio.melotti, rhettinger, serhiy.storchaka
Date 2021-12-08.09:44:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638956693.62.0.833450393481.issue45929@roundup.psfhosted.org>
In-reply-to
Content
My final goal is to preserve the empty lines - I think I can do some bash magic, but maybe something more complex that a simple sed call.

FWIW on https://jsonlines.org/#line-separator-is-n I see "The last character in the file may be a line separator, and it will be treated the same as if there was no line separator present.".
And on https://github.com/ndjson/ndjson-spec#32-parsing I see "The parser MAY silently ignore empty lines, e.g. \n\n. This behavior MUST be documented and SHOULD be configurable by the user of the parser.".

While I get this choice can be "on a grey area", I think this is a known "dialect" of the jsonl specs.
History
Date User Action Args
2021-12-08 09:44:53ZeDsetrecipients: + ZeD, rhettinger, bob.ippolito, ezio.melotti, serhiy.storchaka, AlexWaygood
2021-12-08 09:44:53ZeDsetmessageid: <1638956693.62.0.833450393481.issue45929@roundup.psfhosted.org>
2021-12-08 09:44:53ZeDlinkissue45929 messages
2021-12-08 09:44:53ZeDcreate