Fixes issue with newline truncation.