Hug multiline-strings preview style (#9243)
This commit is contained in:
@@ -394,12 +394,12 @@ impl Format<PyFormatContext<'_>> for BinaryLike<'_> {
|
||||
f,
|
||||
[
|
||||
operand.leading_binary_comments().map(leading_comments),
|
||||
leading_comments(comments.leading(&string_constant)),
|
||||
leading_comments(comments.leading(string_constant)),
|
||||
// Call `FormatStringContinuation` directly to avoid formatting
|
||||
// the implicitly concatenated string with the enclosing group
|
||||
// because the group is added by the binary like formatting.
|
||||
FormatStringContinuation::new(&string_constant),
|
||||
trailing_comments(comments.trailing(&string_constant)),
|
||||
trailing_comments(comments.trailing(string_constant)),
|
||||
operand.trailing_binary_comments().map(trailing_comments),
|
||||
line_suffix_boundary(),
|
||||
]
|
||||
@@ -413,12 +413,12 @@ impl Format<PyFormatContext<'_>> for BinaryLike<'_> {
|
||||
write!(
|
||||
f,
|
||||
[
|
||||
leading_comments(comments.leading(&string_constant)),
|
||||
leading_comments(comments.leading(string_constant)),
|
||||
// Call `FormatStringContinuation` directly to avoid formatting
|
||||
// the implicitly concatenated string with the enclosing group
|
||||
// because the group is added by the binary like formatting.
|
||||
FormatStringContinuation::new(&string_constant),
|
||||
trailing_comments(comments.trailing(&string_constant)),
|
||||
trailing_comments(comments.trailing(string_constant)),
|
||||
]
|
||||
)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user