mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
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:
parent
d5dd5db767
commit
24bf71f98c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user