There is a string read from the outside. In this line, the text and no transitions to the new line. Instead, it contains \n handwritten, which denote these transitions.
So, I look at the line under the debugger, I see that in fact all \n are padded to \\n .
I start to carry out the replacement:
string output = Regex.Replace(textToPrint, "\\n", "\n"); But it does not help, nothing happens. How to be? What am I doing wrong?
\r\n, and even better to useEnvironment.NewLine- Grundy