mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
Fix for 10+ font tags in one line when converting from srt to assa - thx MKN-Makuno :)
Fix #7628
This commit is contained in:
parent
8c9184f2ef
commit
ed5b385eaf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user