@@ -39,6 +39,7 @@ def __board_node_generator(beg):
3939 @staticmethod
4040 def __get_move_text_history (game , emphasis ):
4141 beg = game .variations [0 ]
42+ tabbed = False
4243 moves = []
4344 # nodes will be tuple of either 2 nodes or 1 node
4445 for counter , nodes in enumerate (
@@ -57,8 +58,11 @@ def __get_move_text_history(game, emphasis):
5758
5859 # Add a space if the move is the current move
5960 if counter - 1 == int (emphasis - .5 ):
60- s = ' ' + s
61+ s = '\t ' + s
62+ tabbed = True
6163 moves .append (s )
64+ if not tabbed :
65+ moves [- 1 ] = '\t ' + moves [- 1 ]
6266 return moves
6367
6468
@@ -105,7 +109,7 @@ def render_history(self):
105109 # print("nothing")
106110 moves = moves [- 15 :]
107111 for move in moves :
108- if move .startswith (' ' ):
112+ if move .startswith ('\t ' ):
109113 l = GUI .moves_panel [0 ][0 ]
110114 r = GUI .moves_panel [1 ][0 ]
111115 dy = - 5
@@ -115,7 +119,7 @@ def render_history(self):
115119 ]
116120 gfx .filled_polygon (self .screen , rect , (0 , 0 , 0 ))
117121 self .render_text (move .lstrip (), (None , y ), True ,
118- (0 , 0 , 0 ) if move .startswith (' ' ) else (21 , 21 , 21 ))
122+ (0 , 0 , 0 ) if move .startswith ('\t ' ) else (21 , 21 , 21 ))
119123 y += 30
120124
121125
0 commit comments