mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
small fix for issue Issue 171 (again;)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2154 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
c1dd553edf
commit
b0d4bf45be
@ -4913,7 +4913,15 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
if (checkBoxTesseractMusicOn.Checked)
|
if (checkBoxTesseractMusicOn.Checked)
|
||||||
{
|
{
|
||||||
if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Substring(1, 2) == "' ")
|
if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Replace("<i>", string.Empty).Replace("</i>", string.Empty).Substring(1, 2) == "' ")
|
||||||
|
{
|
||||||
|
unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart();
|
||||||
|
}
|
||||||
|
if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Replace("<i>", string.Empty).Replace("</i>", string.Empty).Substring(1, 1) == " ")
|
||||||
|
{
|
||||||
|
unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart();
|
||||||
|
}
|
||||||
|
if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Replace("<i>", string.Empty).Replace("</i>", string.Empty).Substring(2, 1) == " ")
|
||||||
{
|
{
|
||||||
unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart();
|
unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user