Merge pull request #1942 from ivandrofly/quick-fix

Minor fixes
This commit is contained in:
Nikolaj Olsson 2016-09-07 06:13:11 +02:00 committed by GitHub
commit dba2e0a3a4
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
* Fixed reading of split Blu-ray sup packages from mkv - thx Sinnlosvoll * Fixed reading of split Blu-ray sup packages from mkv - thx Sinnlosvoll
* Minor improvement for line split in "Binary image compare" OCR * Minor improvement for line split in "Binary image compare" OCR
* Fixed Blu-ray composition number when writing .sup files - thx mbcd * 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 Tesseract dictionaries download links
* Fixed crash in import of .TS files - thx malgane/ivandrofly * Fixed crash in import of .TS files - thx malgane/ivandrofly
* + Many minor fixes from ivandrofly and xylographe * + Many minor fixes from ivandrofly and xylographe

View File

@ -221,7 +221,7 @@ namespace Nikse.SubtitleEdit.Core
} }
/// <summary> /// <summary>
/// Creates subtitle as text in it'snative format /// Creates subtitle as text in its native format.
/// </summary> /// </summary>
/// <param name="format">Format to output</param> /// <param name="format">Format to output</param>
/// <returns>Native format as text string</returns> /// <returns>Native format as text string</returns>

View File

@ -586,7 +586,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
else if (header.DisplayStandardCode == "0" && header.MaximumNumberOfDisplayableRows == "02") // open subtitling else if (header.DisplayStandardCode == "0" && header.MaximumNumberOfDisplayableRows == "02") // open subtitling
rows = 15; 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)) if (text.StartsWith("{\\an7}", StringComparison.Ordinal) || text.StartsWith("{\\an8}", StringComparison.Ordinal) || text.StartsWith("{\\an9}", StringComparison.Ordinal))
{ {
tti.VerticalPosition = 1; // top (vertical) tti.VerticalPosition = 1; // top (vertical)