Third attempt at split_into_lines and it's close to being perfect!