You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the Raw string literals section in the reference the "raw string body can contain any sequence of Unicode characters" and "[a]ll Unicode characters contained in the raw string body represent themselves". However in such a raw string carriage return + newline sequences (U+000DU+000A) are replaced by a single newline char (U+000A).
This is probably a sensible choice but if so should be documented thus.
The text was updated successfully, but these errors were encountered:
Count-Count
changed the title
Raw strings don't preserve cr+nl sequences
Raw strings don't preserve carriage return + new line sequences
Mar 3, 2021
Count-Count
changed the title
Raw strings don't preserve carriage return + new line sequences
Raw strings don't preserve carriage return + newline sequences
Mar 3, 2021
According to the Raw string literals section in the reference the "raw string body can contain any sequence of Unicode characters" and "[a]ll Unicode characters contained in the raw string body represent themselves". However in such a raw string carriage return + newline sequences (
U+000D
U+000A
) are replaced by a single newline char (U+000A
).This is probably a sensible choice but if so should be documented thus.
Testcase
The text was updated successfully, but these errors were encountered: