Skip to content

Conversation

cobaltt7
Copy link
Collaborator

@cobaltt7 cobaltt7 commented Mar 22, 2024

Description

Resolves #4247

I fixed it by not wrapping around multiline strings outside brackets. This keeps all existing tests passing while allowing assert statements to not be reformatted. This is currently gated under the multiline_string_handling unstable style, since it's the smallest solution to just add it in there.

Checklist - did you ...

  • [y] Add an entry in CHANGES.md if necessary?
  • [y] Add / update tests if necessary?
  • [-] Add new / update outdated documentation?

Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
@cobaltt7 cobaltt7 changed the title fix: Stop moving multiline strings to a new line inside brackets fix: Stop moving multiline strings to a new line unless inside brackets Mar 22, 2024
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
Copy link

diff-shades reports zero changes comparing this PR (001ab8f) to main (c9d2635).


What is this? | Workflow run | diff-shades documentation

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you!

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

Successfully merging this pull request may close these issues.

assertion with multi-line string needlessly spans multiple lines
3 participants