You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like adding or removing items from multi-line arrays does not respect the existing formatting of the "end of the array", i.e. the placement of trailing commas (if any) and closing "]" is not preserved.
Appending an element to an existing multi-line array with a trailing comma after the last item results in an array without a trailing comma after the last item:
Removing any element (i.e. this is not specific to removing the last element) from a multi-line array moves the closing "]" to the end of the previous line, even if it was on its own line before:
Not only is the placement of the closing "]" not preserved, but it appears to be "blindly" moved to the end of the previous line.
This can actually produce invalid TOML if the previous line contains a comment (already filed as a separate issue: #213 ).
Tested with tomlkit 0.11.1.
The text was updated successfully, but these errors were encountered:
It looks like adding or removing items from multi-line arrays does not respect the existing formatting of the "end of the array", i.e. the placement of trailing commas (if any) and closing "]" is not preserved.
Not only is the placement of the closing "]" not preserved, but it appears to be "blindly" moved to the end of the previous line.
This can actually produce invalid TOML if the previous line contains a comment (already filed as a separate issue: #213 ).
Tested with tomlkit 0.11.1.
The text was updated successfully, but these errors were encountered: