Fix undesired break lines in auto-´translate - thx Dyo-Anima :)

Fix #8770
This commit is contained in:
Nikolaj Olsson 2024-08-28 09:59:20 +02:00
parent 46d5d87c7e
commit 36d81029d2

View File

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