mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
minor refact
This commit is contained in:
parent
cac2d68aac
commit
4c13882f06
@ -558,11 +558,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
for (int i = _subtitle.Paragraphs.Count - 1; i >= 0; i--)
|
||||
{
|
||||
Paragraph p = _subtitle.Paragraphs[i];
|
||||
if (p.Text.Trim().Length == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
if (!string.IsNullOrEmpty(p.Text))
|
||||
{
|
||||
string text = p.Text.Trim(' ');
|
||||
if (text.StartsWith(Environment.NewLine))
|
||||
@ -590,7 +586,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
for (int i = _subtitle.Paragraphs.Count - 1; i >= 0; i--)
|
||||
{
|
||||
Paragraph p = _subtitle.Paragraphs[i];
|
||||
if (p.Text.Trim().Length == 0)
|
||||
if (string.IsNullOrEmpty(p.Text))
|
||||
{
|
||||
if (AllowFix(p, fixAction0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user