From 24bf71f98cd6dfb35c9e2d496045789abc22ed5c Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 27 Nov 2010 10:33:20 +0000 Subject: [PATCH] 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 --- src/Logic/OCR/OcrFixEngine.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Logic/OCR/OcrFixEngine.cs b/src/Logic/OCR/OcrFixEngine.cs index 4029fcb5d..09b061be7 100644 --- a/src/Logic/OCR/OcrFixEngine.cs +++ b/src/Logic/OCR/OcrFixEngine.cs @@ -445,8 +445,12 @@ namespace Nikse.SubtitleEdit.Logic.OCR lastLine.EndsWith("!") || lastLine.EndsWith("?")) { - if (input.Length > 0 && input[0].ToString() != input[0].ToString().ToUpper()) - input = input.Remove(0, 1).Insert(0, input[0].ToString().ToUpper()); + 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)