Skip to content

Commit

Permalink
Fix space character in format PAC-thx raphaelomoreira :)
Browse files Browse the repository at this point in the history
Fix #9292
  • Loading branch information
niksedk committed Jan 30, 2025
1 parent bfe5119 commit a679c60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libse/SubtitleFormats/Pac.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public static bool IsValidCodePage(int codePage)
{ 0x558a, new SpecialCharacter("Ū")},
{ 0x758a, new SpecialCharacter("ū")},

{ 0x20, new SpecialCharacter(" ")},
{ 0x09, new SpecialCharacter(" ")},
{ 0x23, new SpecialCharacter("£")},
{ 0x7c, new SpecialCharacter("æ")},
Expand Down Expand Up @@ -2768,7 +2769,8 @@ internal static TimeCode GetTimeCode(int timeCodeIndex, byte[] buffer)

private static KeyValuePair<int, SpecialCharacter>? Find(Dictionary<int, SpecialCharacter> list, string letter)
{
return list?.Where(c => c.Value.Character == letter).Cast<KeyValuePair<int, SpecialCharacter>?>().FirstOrDefault();
var result = list?.Where(c => c.Value.Character == letter).Cast<KeyValuePair<int, SpecialCharacter>?>().FirstOrDefault();
return result;
}

internal struct SpecialCharacter
Expand Down

0 comments on commit a679c60

Please sign in to comment.