Try not to change ASS tags when not needed - thx Skrity :)

Fix #2537
This commit is contained in:
Nikolaj Olsson 2017-09-05 18:07:05 +02:00
parent 12d7aea912
commit 04da4227b5

View File

@ -554,6 +554,10 @@ Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
public static string FormatText(Paragraph p)
{
string text = p.Text.Replace(Environment.NewLine, "\\N");
if (!text.Contains('<'))
return text;
text = text.Replace("<i>", @"{\i1}");
text = text.Replace("</i>", @"{\i0}");
text = text.Replace("</i>", @"{\i}");