Fix for last commit

This commit is contained in:
Nikolaj Olsson 2024-08-28 10:03:18 +02:00
parent 36d81029d2
commit 48d4558352

View File

@ -479,10 +479,7 @@ namespace Nikse.SubtitleEdit.Forms.Translate
{
var part = GetPartFromItem(text, item);
text = text.Remove(0, part.Length).Trim();
if (text.Length > Configuration.Settings.General.SubtitleLineMaximumLength)
{
lines.Add(Utilities.AutoBreakLine(part));
}
lines.Add(text.Length > Configuration.Settings.General.SubtitleLineMaximumLength ? Utilities.AutoBreakLine(part) : part);
}
}