#36177: Add a newline to the end of file when generating JSON fixtures
-------------------------------------+-------------------------------------
Reporter: Tom Carrick | Type:
| Cleanup/optimization
Status: new | Component: Core
| (Management commands)
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Mostly I'd like to get rid of
https://github.com/django/django/blob/0bac41fc7e4a842e8d20319cba31cc645501c245/.editorconfig#L24
It's a little annoying to work with in preparation for adding a CSS / JS
formatter. While it won't run on JSON (yet?) it does complain about this
line at the moment, and it feels a little awkward to have it in the first
place.
It could also be useful if people like to concatenate fixtures to avoid
getting the last `}` of one fixture on the same line as `{` of the next,
and to avoid potential terminal issues around printing stuff without
trailing newlines.
Another possibility is to actually format JSON files, which might be nice,
and just add these newlines after the fact. If that seems like the better
option, it's also fine.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36177>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.