mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Fix for toggle assa tags
This commit is contained in:
parent
0b13f3d775
commit
16ad65a01a
@ -904,13 +904,13 @@ namespace Nikse.SubtitleEdit.Core.Common
|
|||||||
text = text.Replace($"{{\\{tag}1}}", string.Empty);
|
text = text.Replace($"{{\\{tag}1}}", string.Empty);
|
||||||
text = text.Replace($"{{\\{tag}0}}", string.Empty);
|
text = text.Replace($"{{\\{tag}0}}", string.Empty);
|
||||||
}
|
}
|
||||||
text = text.Replace($"{{\\{tag}}}", string.Empty);
|
text = text.Replace($"{{\\{tag}1}}", string.Empty);
|
||||||
|
|
||||||
text = text.Replace("\\tag", string.Empty);
|
text = text.Replace($"\\{tag}1", string.Empty);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
text = onOffTags.Contains(tag) ? $"{{\\{tag}1}}{text}{{\\{tag}0}}" : $"{{\\{tag}}}{text}";
|
text = onOffTags.Contains(tag) || !wholeLine ? $"{{\\{tag}1}}{text}{{\\{tag}0}}" : $"{{\\{tag}1}}{text}";
|
||||||
}
|
}
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
|
Loading…
Reference in New Issue
Block a user