python-poetry / tomlkit

Style-preserving TOML library for Python
MIT License
699 stars 100 forks source link

Add indent control for multi-line `Array` #290

Open goodboy opened 1 year ago

goodboy commented 1 year ago

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 ?