diff --git a/aegisub/libaegisub/include/libaegisub/line_iterator.h b/aegisub/libaegisub/include/libaegisub/line_iterator.h index e7ad29459..afee984d6 100644 --- a/aegisub/libaegisub/include/libaegisub/line_iterator.h +++ b/aegisub/libaegisub/include/libaegisub/line_iterator.h @@ -194,6 +194,8 @@ void line_iterator::next() { std::string str, cstr, *target; if (width == 1) { std::getline(*stream, str); + if (str.size() && *str.rbegin() == '\r') + str.resize(str.size() - 1); } else { getline(str);