mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Fix ASSA new line bug from recent commit
This commit is contained in:
parent
cfe561c65e
commit
7fa7e9c64b
@ -890,7 +890,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"
|
||||
|
||||
public static string FormatText(Paragraph p)
|
||||
{
|
||||
string text = NormalizeNewLines(p.Text);
|
||||
string text = p.Text.Replace(Environment.NewLine, "\\N");
|
||||
|
||||
if (!text.Contains('<'))
|
||||
{
|
||||
|
@ -10966,8 +10966,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
return;
|
||||
}
|
||||
|
||||
var pre = string.Empty;
|
||||
var startIdx = currentParagraph.Text.LastIndexOf("<i>", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
string pre;
|
||||
if (startIdx >= 0 &&
|
||||
!currentParagraph.Text.Contains("</i>", StringComparison.OrdinalIgnoreCase) &&
|
||||
nextParagraph.Text.Contains("</i>", StringComparison.OrdinalIgnoreCase))
|
||||
|
Loading…
Reference in New Issue
Block a user