mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
Merge pull request #2023 from ivandrofly/macsub-fixpatch
[MacSub] - Fix numbering paragraph.
This commit is contained in:
commit
be5cc67d4c
@ -55,7 +55,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
|||||||
_errorCount = 0;
|
_errorCount = 0;
|
||||||
char[] trimChar = { '/' };
|
char[] trimChar = { '/' };
|
||||||
var p = new Paragraph();
|
var p = new Paragraph();
|
||||||
for (int i = 0; i < lines.Count; i++)
|
for (int i = 0, lineNumber = 1; i < lines.Count; i++)
|
||||||
{
|
{
|
||||||
string line = lines[i].Trim();
|
string line = lines[i].Trim();
|
||||||
string nextLine = null;
|
string nextLine = null;
|
||||||
@ -86,7 +86,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
|||||||
if ((nextLine == null) || (nextLine.Length > 0 && nextLine[0] == '/'))
|
if ((nextLine == null) || (nextLine.Length > 0 && nextLine[0] == '/'))
|
||||||
{
|
{
|
||||||
expecting = Expecting.EndFrame;
|
expecting = Expecting.EndFrame;
|
||||||
p.Number = i;
|
p.Number = lineNumber++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user