ボケ防止にC#を再開したいのですがボケ症状の無限リープに。
何が問題なのかわからない痴呆状態に。。

do
{
text = text.Replace("\n\n", "\n");
text = text.Replace(" ", " ");

} while (text.IndexOf("\n\n") != -1 || text.IndexOf(" ") != -1);