From 0740abced6c8c0422b4f08d78dfc57b0b3cdf22f Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Tue, 9 Jun 2015 17:57:25 +0100 Subject: [PATCH 1/2] Anchored properly: labelTotalLines (src/Forms/JoinSubtitles.Designer.cs) --- src/Forms/JoinSubtitles.Designer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Forms/JoinSubtitles.Designer.cs b/src/Forms/JoinSubtitles.Designer.cs index d63f3cb5a..b22937ab7 100644 --- a/src/Forms/JoinSubtitles.Designer.cs +++ b/src/Forms/JoinSubtitles.Designer.cs @@ -130,6 +130,7 @@ // // labelTotalLines // + this.labelTotalLines.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelTotalLines.AutoSize = true; this.labelTotalLines.Location = new System.Drawing.Point(7, 232); this.labelTotalLines.Name = "labelTotalLines"; From 1fe065d91d6105005f618766b6e95eeb3ca4f10c Mon Sep 17 00:00:00 2001 From: ivandrofly Date: Tue, 9 Jun 2015 18:00:28 +0100 Subject: [PATCH 2/2] Remove SSA tags when checking line length --- src/Forms/SplitLongLines.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/SplitLongLines.cs b/src/Forms/SplitLongLines.cs index 38a8c0c51..21fc2b9c3 100644 --- a/src/Forms/SplitLongLines.cs +++ b/src/Forms/SplitLongLines.cs @@ -112,7 +112,7 @@ namespace Nikse.SubtitleEdit.Forms int i = 0; foreach (Paragraph p in subtitle.Paragraphs) { - string s = HtmlUtil.RemoveHtmlTags(p.Text); + string s = HtmlUtil.RemoveHtmlTags(p.Text, true); if (s.Length > maxLength) { maxLength = s.Length;