Fixed a bug in "Remove text for HI" - sometimes italic tags was not properly removed

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@620 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-09-09 19:53:21 +00:00
parent de4fdf85d4
commit cf4a8ba3f8

View File

@ -502,11 +502,15 @@ namespace Nikse.SubtitleEdit.Forms
if (st.Pre.Contains("<i>") && stSub.Post.Contains("</i>"))
st.Pre = st.Pre.Replace("<i>", string.Empty);
if (s.Contains("<i>") && !s.Contains("</i>") && st.Post.Contains("</i>"))
st.Post = st.Post.Replace("</i>", string.Empty);
}
lineNumber++;
}
text = st.Pre + sb.ToString().Trim() + st.Post;
text = text.Replace("<i></i>", string.Empty).Trim();
text = RemoveColon(text);
text = RemoveHearImpairedtagsInsideLine(text);
if (checkBoxRemoveInterjections.Checked)