should we be skipping newlines too somewhere? Or is it only spaces that are causing trouble?