Hmm, looks like this is no longer necessary, current version seems to preserve the newline correctly.
This note is just to remind me to remove this change later.