src/eric7/VCS/VersionControl.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 10475
ee41fab001f2
--- a/src/eric7/VCS/VersionControl.py	Sun Dec 31 18:01:05 2023 +0100
+++ b/src/eric7/VCS/VersionControl.py	Sun Dec 31 20:27:52 2023 +0100
@@ -297,7 +297,7 @@
                 del messages[noMessages:]
 
                 with contextlib.suppress(TypeError, OSError):
-                    jsonString = json.dumps(messages, indent=2)
+                    jsonString = json.dumps(messages, indent=2) + "\n"
                     with open(
                         os.path.join(projectMgmtDir, VersionControl.commitHistoryData),
                         "w",
@@ -331,7 +331,7 @@
             )
             if lockFile.lock():
                 with contextlib.suppress(TypeError, OSError):
-                    jsonString = json.dumps([], indent=2)
+                    jsonString = json.dumps([], indent=2) + "\n"
                     with open(
                         os.path.join(projectMgmtDir, VersionControl.commitHistoryData),
                         "w",

eric ide

mercurial