mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Minor italic fixes in translate
This commit is contained in:
parent
037b372da9
commit
95d93386ec
@ -267,6 +267,13 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
cleanText = cleanText.Replace("</ i>", "</i>");
|
||||
cleanText = cleanText.Replace("</ I>", "</i>");
|
||||
cleanText = cleanText.Replace("</I>", "</i>");
|
||||
cleanText = cleanText.Replace("< i >", "<i>");
|
||||
if (cleanText.StartsWith("<i> "))
|
||||
cleanText = cleanText.Remove(3, 1);
|
||||
if (cleanText.EndsWith(" </i>"))
|
||||
cleanText = cleanText.Remove(cleanText.Length -5, 1);
|
||||
cleanText = cleanText.Replace(Environment.NewLine + "<i> ", Environment.NewLine + "<i>");
|
||||
cleanText = cleanText.Replace(" </i>" + Environment.NewLine, "</i>" + Environment.NewLine);
|
||||
_translatedSubtitle.Paragraphs[index].Text = cleanText;
|
||||
}
|
||||
index++;
|
||||
|
Loading…
Reference in New Issue
Block a user