Update regexes so that it doesn't strip first \n

Also fleshed out tests a bit to ensure that \r\n is also handled
correctly.
Merge pull request #4 from tivac/formatter-newlines

Update regexes so that it doesn't strip first \n