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 indent control for multi-line Array #290

Open
goodboy opened this issue May 12, 2023 · 0 comments
Open

Add indent control for multi-line Array #290

goodboy opened this issue May 12, 2023 · 0 comments

Comments

@goodboy
Copy link

goodboy commented May 12, 2023

More or less a control for an indent: str when Array._multiline == True.

The Trivia.indent doesn't seem be the right place because it's in reference to the parent container?
Also, only when it's a multiline array does this indent exist; I'm thinking add an Array._multiline_indent: str ?

goodboy added a commit to pikers/piker that referenced this issue May 17, 2023
We still need to get some patches landed in order to resolve:
- python-poetry/tomlkit#288
- python-poetry/tomlkit#289
- python-poetry/tomlkit#290

But, this does work for style preservation and the inline-table style we
were previously hacking into the `toml` lib in `.accounting._toml`,
which we can pretty much just drop now B)

Relates to #496 (pretty much solves it near-term i think?)
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

No branches or pull requests

1 participant