diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 1260384e..f69395fd 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -1,6 +1,11 @@ Release notes ============= +0.21.1 +------ + +* ``jsoncheck``: have formatted JSON files end with a newline (lp:bug 1403159) + 0.21 ---- diff --git a/os_doc_tools/jsoncheck.py b/os_doc_tools/jsoncheck.py index de78610a..755052c1 100644 --- a/os_doc_tools/jsoncheck.py +++ b/os_doc_tools/jsoncheck.py @@ -107,7 +107,7 @@ def _parse_json(raw): def _format_parsed_json(parsed): """Pretty-print JSON file content while retaining key order.""" return json.dumps(parsed, sort_keys=False, separators=(',', ': '), - indent=4) + indent=4) + "\n" def _process_file(path, formatting=None, verbose=False):