Fix enter in textbox in FCE - thx p1nkyy/Roger :)

Fix #8883
This commit is contained in:
Nikolaj Olsson 2024-10-16 19:10:09 +02:00
parent 0d45a60a75
commit 3a14913b98
2 changed files with 3 additions and 2 deletions

View File

@ -610,6 +610,7 @@ namespace Nikse.SubtitleEdit.Forms
listView1.Select();
AcceptButton = buttonNextFinish;
textBoxListViewText.AcceptsReturn = true;
}
private void FixLargeFonts()

View File

@ -50,7 +50,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
text = text.Replace(" ", " ");
text = text.Replace("<i> ", " <i>");
text = text.Replace(" </i>", "</i> ");
text = text.Replace("</i> <i>", " ");
text = text.Replace("</i> <i>", " ");
text = text.Replace(" ", " ");
return text.Trim();
@ -67,7 +67,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
}
var beforeHasLetter = i > 0 && !Separators.Contains(matches[i - 1].Text);
var afterHasLetter = i < matches.Count -1 && !Separators.Contains(matches[i + 1].Text);
var afterHasLetter = i < matches.Count - 1 && !Separators.Contains(matches[i + 1].Text);
if (beforeHasLetter || afterHasLetter)
{
continue;