diff --git a/Changelog.txt b/Changelog.txt index c435f0285..125a4c8fc 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -43,7 +43,7 @@ * Fixed reading of split Blu-ray sup packages from mkv - thx Sinnlosvoll * Minor improvement for line split in "Binary image compare" OCR * Fixed Blu-ray composition number when writing .sup files - thx mbcd - * Fixed some minor issues in "Compare" - thx invandrofly + * Fixed some minor issues in "Compare" - thx ivandrofly * Fixed Tesseract dictionaries download links * Fixed crash in import of .TS files - thx malgane/ivandrofly * + Many minor fixes from ivandrofly and xylographe diff --git a/libse/Subtitle.cs b/libse/Subtitle.cs index 8e32c9cee..036230932 100644 --- a/libse/Subtitle.cs +++ b/libse/Subtitle.cs @@ -221,7 +221,7 @@ namespace Nikse.SubtitleEdit.Core } /// - /// Creates subtitle as text in it'snative format + /// Creates subtitle as text in its native format. /// /// Format to output /// Native format as text string diff --git a/libse/SubtitleFormats/Ebu.cs b/libse/SubtitleFormats/Ebu.cs index 968e1b797..331141437 100644 --- a/libse/SubtitleFormats/Ebu.cs +++ b/libse/SubtitleFormats/Ebu.cs @@ -586,7 +586,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats else if (header.DisplayStandardCode == "0" && header.MaximumNumberOfDisplayableRows == "02") // open subtitling rows = 15; - var text = p.Text.Trim(new char[] { '\r', '\n' }); + var text = p.Text.Trim(Utilities.NewLineChars); if (text.StartsWith("{\\an7}", StringComparison.Ordinal) || text.StartsWith("{\\an8}", StringComparison.Ordinal) || text.StartsWith("{\\an9}", StringComparison.Ordinal)) { tti.VerticalPosition = 1; // top (vertical)