Skip to content

Commit

Permalink
Changed code that computes unescaped literal string type to convert C…
Browse files Browse the repository at this point in the history
…RLF to LF within multi-line triple-quoted strings so the behavior is consistent with runtime. This addresses #9681.
  • Loading branch information
erictraut committed Jan 10, 2025
1 parent cba1872 commit 5f69f3a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/pyright-internal/src/parser/stringTokenUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ export function getUnescapedString(stringToken: StringToken | FStringMiddleToken
} else if (curChar === Char.LineFeed || curChar === Char.CarriageReturn) {
// Skip over the escaped new line (either one or two characters).
if (curChar === Char.CarriageReturn && getEscapedCharacter(1) === Char.LineFeed) {
appendOutputChar(curChar);
strOffset++;
curChar = getEscapedCharacter();
}
Expand Down

0 comments on commit 5f69f3a

Please sign in to comment.