Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5907f3

Browse files
committed
Don't change behavior for Kerns.
1 parent 71adb18 commit f5907f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2888,8 +2888,10 @@ def operatorname(self, s, loc, toks):
28882888
c.font = 'rm'
28892889
c._update_metrics()
28902890
hlist_list.append(c)
2891-
else:
2891+
elif isinstance(c, str):
28922892
hlist_list.append(Char(c, state))
2893+
else:
2894+
hlist_list.append(c)
28932895
next_char_loc = loc + len(toks[0]) + 1
28942896
if isinstance(toks[0], ParseResults):
28952897
next_char_loc += 14 # Skip `operatorname{}`

0 commit comments

Comments
 (0)