Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an argument to allow table to be super table #159

Merged
merged 3 commits into from
Dec 23, 2021

Conversation

frostming
Copy link
Contributor

@frostming frostming commented Dec 23, 2021

doc = tomlkit.document()
table = tomlkit.table(True)
table.add("bar", {"x": 1})
doc.add("foo", table)
print(doc.as_string())
[foo.bar]
x = 1

Intermediate table is hidden.

Fixes #47

@frostming frostming merged commit b5da6c9 into master Dec 23, 2021
@frostming frostming deleted the feature/super-table branch December 23, 2021 08:51
capuanob pushed a commit to capuanob/tomlkit that referenced this pull request Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to create a table without the supers
1 participant