Skip to content

Missing newline after inline table #440

@ewjoachim

Description

@ewjoachim

Hello,
Sorry to be opening another issue so early after the last one, but I found something else:

v = tomlkit.loads("""[x]\na.b = {}""")
v["x"]["c"] = 3
print(tomlkit.dumps(v))

output:

[x]
a.b = {}c = 3

As you can see, there should be a new line before c = 3

Note that this doesn't happens with either:

  • """[x]\na.b = {}\n"""
  • """[x]\na = {}"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions