Closed Horsmann closed 6 years ago
I usually do not do this. It makes the code annoyingly unreadable and hardly contributes anything.
In fact, if I notice any code in my projects which does this, I usually change it to use simply \n
.
It also might break compatibility when moving a file generated by TC between *nix and Windows machines.
^^ ok, I am convinced.
Line-breaks are often hard-coded as '\n'. It would be more clean to use
System.lineSeparator()
which sets them correctly for Windows i.e.\r\n