mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
parent
12d7aea912
commit
04da4227b5
@ -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}");
|
||||
|
Loading…
Reference in New Issue
Block a user