fixed rendering of newlines