Fix spurious trailing newline in toml files
`toml.dumps` already produces a trailing newline.
This commit is contained in:
parent
442f389b36
commit
aeec6005f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue