From 36d81029d2461c90bc8c84a6918eb32fc6991c7d Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Wed, 28 Aug 2024 09:59:20 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20undesired=20break=20lines=20in=20auto-?= =?UTF-8?q?=C2=B4translate=20-=20thx=20Dyo-Anima=20:)=20Fix=20#8770?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/Forms/Translate/MergeAndSplitHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/Forms/Translate/MergeAndSplitHelper.cs b/src/ui/Forms/Translate/MergeAndSplitHelper.cs index a6b5a990c..9e85370dd 100644 --- a/src/ui/Forms/Translate/MergeAndSplitHelper.cs +++ b/src/ui/Forms/Translate/MergeAndSplitHelper.cs @@ -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)); + } } }