Delete empty rows, fix formatting.