From aeec6005f66e358f146c25df4fff65de8e0fd188 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 4 Nov 2025 03:31:51 +0100 Subject: [PATCH] Fix spurious trailing newline in toml files `toml.dumps` already produces a trailing newline. --- pasch/file/toml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pasch/file/toml.py b/pasch/file/toml.py index a435763..688ffed 100644 --- a/pasch/file/toml.py +++ b/pasch/file/toml.py @@ -39,7 +39,7 @@ class TomlFile(File): def to_text(self) -> TextFile: file = TextFile() file.tag(comment="#") - file.append(toml.dumps(self.data)) + file.append(toml.dumps(self.data), newline=False) return file def to_bytes(self) -> bytes: