mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
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:
parent
de4fdf85d4
commit
cf4a8ba3f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user