mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 12:12:41 +01:00
remove redundant fix
This commit is contained in:
parent
7d3ecd76ef
commit
b9f6a0a946
@ -13,10 +13,6 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
||||
|
||||
public void Fix(Subtitle subtitle, IFixCallbacks callbacks)
|
||||
{
|
||||
const string beginTagUpper = "<I>";
|
||||
const string endTagUpper = "</I>";
|
||||
const string beginTag = "<i>";
|
||||
const string endTag = "</i>";
|
||||
string fixAction = Language.FixInvalidItalicTag;
|
||||
int noOfInvalidHtmlTags = 0;
|
||||
for (int i = 0; i < subtitle.Paragraphs.Count; i++)
|
||||
@ -26,13 +22,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
||||
var text = subtitle.Paragraphs[i].Text;
|
||||
if (text.Contains('<'))
|
||||
{
|
||||
if (!text.Contains("i>") && !text.Contains("<i"))
|
||||
{
|
||||
text = text.Replace(beginTagUpper, beginTag).Replace(endTagUpper, endTag);
|
||||
}
|
||||
|
||||
string oldText = text;
|
||||
|
||||
text = HtmlUtil.FixInvalidItalicTags(text);
|
||||
if (text != oldText)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user