Some fixes related to newlines.