Allow \r to precede \n for newlines.

This allows ivy to be used on windows.