|
@@ -1480,7 +1480,7 @@ unsigned ContinuationIndenter::handleEndOfLine(const FormatToken &Current,
|
|
|
// Compute the raw string style to use in case this is a raw string literal
|
|
|
// that can be reformatted.
|
|
|
auto RawStringStyle = getRawStringStyle(Current, State);
|
|
|
- if (RawStringStyle) {
|
|
|
+ if (RawStringStyle && !Current.Finalized) {
|
|
|
Penalty = reformatRawStringLiteral(Current, State, *RawStringStyle, DryRun);
|
|
|
} else if (Current.IsMultiline && Current.isNot(TT_BlockComment)) {
|
|
|
// Don't break multi-line tokens other than block comments and raw string
|