mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
Fixed missing re-number + missing control code in batch convert - related to #3229
This commit is contained in:
parent
43e264f894
commit
ed77d5b2f1
@ -1337,7 +1337,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (p.FixRtl)
|
||||
{
|
||||
var mode = Configuration.Settings.Tools.BatchConvertFixRtlMode;
|
||||
string rtl = "\u202B";
|
||||
for (int i = 0; i < p.Subtitle.Paragraphs.Count; i++)
|
||||
{
|
||||
var paragraph = p.Subtitle.Paragraphs[i];
|
||||
@ -1347,6 +1346,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
paragraph.Text = paragraph.Text.Replace("\u200F", string.Empty);
|
||||
paragraph.Text = paragraph.Text.Replace("\u202A", string.Empty);
|
||||
paragraph.Text = paragraph.Text.Replace("\u202B", string.Empty);
|
||||
paragraph.Text = paragraph.Text.Replace("\u202C", string.Empty);
|
||||
paragraph.Text = paragraph.Text.Replace("\u202D", string.Empty);
|
||||
paragraph.Text = paragraph.Text.Replace("\u202E", string.Empty);
|
||||
}
|
||||
@ -1356,6 +1356,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
else // fix with unicode char
|
||||
{
|
||||
string rtl = "\u202B";
|
||||
paragraph.Text = paragraph.Text.Replace(rtl, string.Empty);
|
||||
paragraph.Text = rtl + paragraph.Text.Replace(Environment.NewLine, Environment.NewLine + rtl);
|
||||
}
|
||||
|
@ -9422,6 +9422,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
splitPos = mediaPlayer.CurrentPosition;
|
||||
SetSplitTime(splitPos, p, newParagraph, idx, oldText);
|
||||
_subtitle.InsertParagraphInCorrectTimeOrder(newParagraph);
|
||||
_subtitle.Renumber();
|
||||
_subtitleListViewIndex = -1;
|
||||
p.Text = text1;
|
||||
newParagraph.Text = text2;
|
||||
|
Loading…
Reference in New Issue
Block a user