mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 12:16:15 +08:00
## Summary The documentation had an incorrect formatting example for multiline strings when using ruff and black. Found under `docs/formatter/black.md`. Changed the examples to match what I found on my own testing environment with Black 26.10.1 and Ruff 0.17.5. Changed the `# Input`, `# Black` and `# Ruff` blocks accordingly. My comment on issue #28930: https://github.com/astral-sh/ruff/issues/28930#issuecomment-6894925305 Fixes #28930 ## Notes to reviewers I changed the `""""` to the more common `"""` since the extra `"` would get wrapped into the string. I didn't change the paragraph below the examples, because I wasn't sure if that's still accurate, since Black 26 does move the `"""` onto the `call(` line. This is my first pull request. I'm happy about any feedback and will change anything accordingly. I'm excited to contribute to a project I use.