diff --git a/aegisub/src/subtitle_format.cpp b/aegisub/src/subtitle_format.cpp index a51bb5d13..115478cb9 100644 --- a/aegisub/src/subtitle_format.cpp +++ b/aegisub/src/subtitle_format.cpp @@ -432,7 +432,7 @@ void SubtitleFormat::ConvertTags(int format,wxString lineEnd) { current->Text.Replace(_T("\\h"),_T(" "),true); current->Text.Replace(_T("\\n"),lineEnd,true); current->Text.Replace(_T("\\N"),lineEnd,true); - while (current->Text.Replace(lineEnd+lineEnd,lineEnd,true)); + while (current->Text.Replace(lineEnd+lineEnd,lineEnd,true)) {}; } } }