Fix spurious trailing newline in toml files

`toml.dumps` already produces a trailing newline.
This commit is contained in:
Joscha 2025-11-04 03:31:51 +01:00
parent 442f389b36
commit aeec6005f6

View file

@ -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: