Skip to content

Commit

Permalink
SubtitleParse/AssFontParse: fix line number offset in log message (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: MingYSub <mingysub@sina.com>
  • Loading branch information
oborozuk1 and MingYSub authored Aug 16, 2024
1 parent 43a1b50 commit 81244d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SubtitleParse/src/AssUtils/AssFontParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void GetOverrideBlockFont(Span<char> block)

if (warningTags is not null)
{
logger?.ZLogWarning($"Event line {curLineNumber} ({curLineNumber - firstLineNumber}): {warningTags}");
logger?.ZLogWarning($"Event line {curLineNumber} ({curLineNumber - firstLineNumber + 1}): {warningTags}");
}
foreach (var tag in tags)
{
Expand Down

0 comments on commit 81244d0

Please sign in to comment.