Revert "Re-arranging the way CRLFs are added to the file"

This reverts commit 0508af21184817aa8e590fe7ec60aedee78b6365.