Why are many empty lines being removed?