mirror of
https://github.com/astral-sh/ruff
synced 2026-01-24 06:50:59 -05:00
Don't add chaperone space after escaped quote in triple quote (#17216)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
@@ -372,7 +372,7 @@ impl Format<PyFormatContext<'_>> for FormatLiteralContent {
|
||||
Cow::Owned(normalized) => text(normalized).fmt(f)?,
|
||||
}
|
||||
|
||||
if self.trim_end && needs_chaperone_space(self.flags, &normalized) {
|
||||
if self.trim_end && needs_chaperone_space(self.flags, &normalized, f.context()) {
|
||||
space().fmt(f)?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user