Skip to content

Comments

Gate is_multiline change behind preview#14630

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/f-string-multiline-preview
Nov 27, 2024
Merged

Gate is_multiline change behind preview#14630
dhruvmanila merged 1 commit intomainfrom
dhruv/f-string-multiline-preview

Conversation

@dhruvmanila
Copy link
Member

@dhruvmanila dhruvmanila commented Nov 27, 2024

@dhruvmanila dhruvmanila added formatter Related to the formatter preview Related to preview mode features labels Nov 27, 2024
@dhruvmanila dhruvmanila marked this pull request as ready for review November 27, 2024 09:47
context.source().contains_line_break(literal.range())
}
ast::FStringElement::Expression(expression) => {
if is_f_string_formatting_enabled(context) {
Copy link
Member Author

Choose a reason for hiding this comment

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

The change in this diff block removes the else block because the entire function call is behind is_f_string_formatting_enabled check.

@github-actions
Copy link
Contributor

ruff-ecosystem results

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

formatter Related to the formatter preview Related to preview mode features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants