@@ -1392,7 +1392,7 @@ def draw_rectangle(self, start_x_char, start_y_char, width, height, grid):
13921392 self .set_char_at (start_x_char , start_y_char , grid , self .top_left ())
13931393 self .set_char_at (start_x_char , start_y_char + height - 1 , grid , self .bottom_left ())
13941394
1395- def on_tree_text_inserted (self , buffer , loc , text , lenght ):
1395+ def on_tree_text_inserted (self , buffer , loc , text , length ):
13961396 spaces = 0
13971397 if text == "\n " :
13981398 start_iter = loc .copy ()
@@ -1519,20 +1519,20 @@ def insert_table(self, table_type, grid):
15191519 width += column_width + 1
15201520
15211521 if table_type == 1 : # all divided
1522- heigth = 1 + self .rows_number * 2
1522+ height = 1 + self .rows_number * 2
15231523 elif table_type == 0 : # first line divided
1524- heigth = 3 + self .rows_number
1524+ height = 3 + self .rows_number
15251525 else : # not divided
1526- heigth = 2 + self .rows_number
1526+ height = 2 + self .rows_number
15271527
1528- self .draw_filled_rectangle (self .table_x , self .table_y , width , heigth , grid , " " )
1529- self .draw_rectangle (self .table_x , self .table_y , width , heigth , grid )
1528+ self .draw_filled_rectangle (self .table_x , self .table_y , width , height , grid , " " )
1529+ self .draw_rectangle (self .table_x , self .table_y , width , height , grid )
15301530
15311531 x = self .table_x
15321532 for column in range (self .columns_number - 1 ):
15331533 x += columns_widths [column ] + 1
1534- self .vertical_line (x , self .table_y + 1 , heigth - 2 , grid , self .right_vertical ())
1535- self .set_char_at (x , self .table_y + heigth - 1 , grid , self .top_intersect ())
1534+ self .vertical_line (x , self .table_y + 1 , height - 2 , grid , self .right_vertical ())
1535+ self .set_char_at (x , self .table_y + height - 1 , grid , self .top_intersect ())
15361536 self .set_char_at (x , self .table_y , grid , self .bottom_intersect ())
15371537
15381538 y = self .table_y
0 commit comments