Skip to content

Commit

Permalink
minor fix (leftover from changes to tag detection logic)
Browse files Browse the repository at this point in the history
  • Loading branch information
hk1ll3r committed Mar 16, 2021
1 parent f322fb5 commit 10f21db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/RTLTMPro/Scripts/Runtime/GlyphFixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static void FixNumbersOutsideOfTags(FastStringBuilder text, bool farsi)
for (int j = i + 1; j < text.Length; j++)
{
char jChar = text.Get(j);
if (jChar == ' ' || TextUtils.IsRTLCharacter(jChar))
if ((j == i + 1 && jChar == ' ') || jChar == '<')
{
break;
} else if (jChar == '>')
Expand Down

0 comments on commit 10f21db

Please sign in to comment.