fixed rendering of line endings