Skip to content

Commit

Permalink
Allow empty strings when defining symbols or colours.
Browse files Browse the repository at this point in the history
  • Loading branch information
ast0815 committed Oct 11, 2020
1 parent aec3f26 commit d5b8c72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions histoprint/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,14 @@ def __init__(
self.no_tick_mark = no_tick_mark
self.print_top_edge = print_top_edge
self.symbols = symbols
if self.symbols == "":
self.symbols = " "
self.fg_colors = fg_colors
if self.fg_colors == "":
self.fg_colors = "0"
self.bg_colors = bg_colors
if self.bg_colors == "":
self.bg_colors = "0"
self.stack = stack
if use_color is None:
if any(c != "0" for c in fg_colors) or any(c != "0" for c in bg_colors):
Expand Down

0 comments on commit d5b8c72

Please sign in to comment.