Skip to content

table escapes its parent #557

Description

@dimbleby
#!/usr/bin/env python3

import tomlkit

doc = tomlkit.loads("""
[t]
a.b = 1
""")
doc["t"]["a"]["c"] = {}

output = tomlkit.dumps(doc)

print(output)

result

[t]
a.b = 1

[a.c]

in which [a.c] is not a child of t as it should be

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