From d5b8c723787de28d741ea555fc7251c17e8b9ec5 Mon Sep 17 00:00:00 2001 From: Lukas Koch Date: Sun, 11 Oct 2020 19:03:37 +0100 Subject: [PATCH] Allow empty strings when defining symbols or colours. --- histoprint/formatter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/histoprint/formatter.py b/histoprint/formatter.py index 11eb2bd..7eaa252 100644 --- a/histoprint/formatter.py +++ b/histoprint/formatter.py @@ -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):