fixed spans on newlines