File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ def __init__(
283283 self ._y_offset = self ._ascent // 2
284284
285285 def _get_ascent_descent (self ) -> Tuple [int , int ]:
286- """ Private function to calculate ascent and descent font values """
286+ """Private function to calculate ascent and descent font values"""
287287 if hasattr (self .font , "ascent" ) and hasattr (self .font , "descent" ):
288288 return self .font .ascent , self .font .descent
289289
@@ -462,4 +462,4 @@ def label_direction(self, new_label_direction: str) -> None:
462462 self ._set_label_direction (new_label_direction )
463463
464464 def _replace_tabs (self , text : str ) -> str :
465- return self ._tab_text .join (text .split ("\t " ))
465+ return text if text . find ( " \t " ) < 0 else self ._tab_text .join (text .split ("\t " ))
You can’t perform that action at this time.
0 commit comments