This may be easier to understand and use

=SUBSTITUTE(A1,CHAR(10)&CHAR(10),CHAR(10))