Skip to content

Commit

Permalink
Fix to propagate enable_ansi_escape/colorize_terminal at _repr_html_ …
Browse files Browse the repository at this point in the history
…method
  • Loading branch information
thombashi committed Jul 26, 2020
1 parent db4e62d commit 4abb745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytablewriter/writer/_table_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ def _repr_html_(self) -> str:
writer.headers = self.headers
writer.value_matrix = self.value_matrix
writer.column_styles = self.column_styles
writer.colorize_terminal = self.colorize_terminal
writer.enable_ansi_escape = self.enable_ansi_escape

return writer.dumps()

Expand Down

0 comments on commit 4abb745

Please sign in to comment.