Fix for 10+ font tags in one line when converting from srt to assa - thx MKN-Makuno :)

Fix #7628
This commit is contained in:
niksedk 2023-11-14 20:06:36 +01:00
parent 8c9184f2ef
commit ed5b385eaf

View File

@ -997,7 +997,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"
text = text.Replace("</b>", @"{\b0}");
text = text.Replace("</b>", @"{\b}");
var count = 0;
while (text.Contains("<font ") && count < 10)
while (text.Contains("<font ") && count < 100)
{
var start = text.IndexOf("<font ", StringComparison.Ordinal);
var end = text.IndexOf('>', start);