Bugfix: Lines after "..." will no longer be changed to start with upper-case letter.

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@160 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-11-27 10:33:20 +00:00
parent d5dd5db767
commit 24bf71f98c

View File

@ -445,9 +445,13 @@ namespace Nikse.SubtitleEdit.Logic.OCR
lastLine.EndsWith("!") ||
lastLine.EndsWith("?"))
{
if (lastLine == null || !lastLine.EndsWith("..."))
{
if (input.Length > 0 && input[0].ToString() != input[0].ToString().ToUpper())
input = input.Remove(0, 1).Insert(0, input[0].ToString().ToUpper());
}
}
// lines ending with ". should often end at ... (of no other quotes exists near by)
if ((lastLine == null || !lastLine.Contains("\"")) && input != null &&