Skip to content

Assignment of adjacent strings that respect line length gets new line #1769

@FMorschel

Description

@FMorschel

What input code did you provide to the formatter?

The change was https://dart-review.googlesource.com/c/sdk/+/448221 from 3.5.0 to 3.9.0.

const _deprecationMessageMethodBeingCopied = 'Use `typeParametersInScope` '
    'instead. You can use `methodBeingCopied.typeParameters`.';

What output did the formatter produce?

const _deprecationMessageMethodBeingCopied =
    'Use `typeParametersInScope` '
    'instead. You can use `methodBeingCopied.typeParameters`.';

What output did you expect or want the formatter to produce?

The old output was better since it would still respect the line length.

Anything else we should know?

This is a constant at pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions