Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Apr 12, 2020
1 parent f7c5ae4 commit ff2525a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rich/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,13 +453,10 @@ def _render(
for index, (first, last, row) in enumerate(loop_first_last(rows)):
max_height = 1
cells: List[List[List[Segment]]] = []
row_style = get_style(get_row_style(index))
for width, cell, column in zip(widths, row, columns):
render_options = options.update(width=width, justify=column.justify)
cell_style = (
table_style
+ get_style(get_row_style(index))
+ get_style(cell.style)
)
cell_style = table_style + row_style + get_style(cell.style)
lines = console.render_lines(
cell.renderable, render_options, style=cell_style
)
Expand Down

0 comments on commit ff2525a

Please sign in to comment.