Second attempt at fixing line space endings