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

Toml parsed incorrectly #198

Open
joshua-auchincloss opened this issue Dec 4, 2023 · 0 comments
Open

Toml parsed incorrectly #198

joshua-auchincloss opened this issue Dec 4, 2023 · 0 comments

Comments

@joshua-auchincloss
Copy link

When using the lib with nested tables, the script (pretty-format-toml) incorrectly overrides keys of adjacent tables.

E.g. (this was in a Cargo.toml), see >> for effected entries

preformatted

[package]
name = "client"
readme = "README.md"
authors.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
>> version.workspace = true

[package.metadata.release]
shared-version = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
serde = {workspace = true, features = ["derive"]}
sea-orm.workspace = true
>> thiserror.workspace = true

[dependencies.sea-orm-migration]
features = [
  "runtime-tokio-native-tls",
  "sqlx-postgres"
]
workspace = true

formatted

[package]
name = "client"
readme = "README.md"
authors.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true

[package.metadata.release]
shared-version = true
repository.workspace = true
rust-version.workspace = true
>> version.workspace = true
>> version.workspace = true
[dependencies]
serde = {workspace = true, features = ["derive"]}
sea-orm.workspace = true

[dependencies.sea-orm-migration]
features = [
  "runtime-tokio-native-tls",
  "sqlx-postgres"
]
workspace = true
>> thiserror.workspace = true
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