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 formatter doesn't respect line length #22

Open
rminami opened this issue Oct 28, 2024 · 0 comments
Open

TOML formatter doesn't respect line length #22

rminami opened this issue Oct 28, 2024 · 0 comments

Comments

@rminami
Copy link

rminami commented Oct 28, 2024

Version: 0.47.4

I have a dprint.jsonc that looks like this

{
  "toml": {
    "lineWidth": 80
  },
  "excludes": [],
  "plugins": ["https://plugins.dprint.dev/toml-0.6.3.wasm"]
}

and a Cargo.toml file that looks like this.

[package]
name = "playground"
version = "0.1.0"
edition = "2021"

[dependencies]
sqlx = { version = "0.8.2", default-features = false, features = ["chrono", "macros", "postgres", "runtime-tokio-rustls", "uuid"] }

Given the 80 character line width, I would expect dprint to reformat the sqlx line to

sqlx = { version = "0.8.2", default-features = false, features = [
  "chrono",
  "macros",
  "postgres",
  "runtime-tokio-rustls",
  "uuid",
] }

However, it is kept as is. This seems like unintended behavior?

@dsherret dsherret transferred this issue from dprint/dprint Nov 8, 2024
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