Unfortunately, I could not find sources that specifically point to this. This is similar to what should be in the documents.
However, in IntelliJ, the intent action converts the raw string to a regular string. I think it should be safe to assume that this action should not change the meaning of your code (or if so, then it should be reported as an error). If you try this on a raw line with a new line in it, you will see that it replaces the new line with the \n character.
You can see the source of the action here and the test for it, which expects it to convert the new string to \n here (before) and here (after) .
Change here the comment on the raw string problem, which (as I understand it) claims that the raw string has \n line endings in it.
source share