diff --git a/src/subtitle_format_ebu3264.cpp b/src/subtitle_format_ebu3264.cpp index 282b57c85..34258098a 100644 --- a/src/subtitle_format_ebu3264.cpp +++ b/src/subtitle_format_ebu3264.cpp @@ -302,7 +302,10 @@ namespace cur_row->emplace_back("", underline, italic, true); } - start = i + (text[i] == '\\'); + if (text[i] == '\\') + start = ++i + 1; + else + start = i; } // add the remaining text