Merge pull request
#1663 from minrk/splitlines
Keep line-endings in ipynb
Avoids discarding of information, e.g. foo\rbar should not be reconstructed as foo\nbar.
Implemented in safe manner, where notebooks written by old scheme will load the same as before, and be updated on next save.