Skip to content

Commit f90a897

Browse files
committed
Should fix colors getting messed up when using the colored library. Fixes #31
1 parent bd1b13a commit f90a897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tableformatter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class TableColors(object):
255255
TEXT_COLOR_GREEN = fg(119)
256256
TEXT_COLOR_BLUE = fg(27)
257257
BG_COLOR_ROW = bg(234)
258-
BG_RESET = bg(0)
258+
BG_RESET = attr('reset') # docs say bg(0) should do this but it doesn't work right
259259
BOLD = attr('bold')
260260
RESET = attr('reset')
261261
except ImportError:
@@ -294,7 +294,7 @@ def set_color_library(cls, library_name: str) -> None:
294294
cls.TEXT_COLOR_GREEN = fg(119)
295295
cls.TEXT_COLOR_BLUE = fg(27)
296296
cls.BG_COLOR_ROW = bg(234)
297-
cls.BG_RESET = bg(0)
297+
cls.BG_RESET = attr('reset') # docs say bg(0) should do this but it doesn't work right
298298
cls.BOLD = attr('bold')
299299
cls.RESET = attr('reset')
300300
elif library_name == 'colorama':

0 commit comments

Comments
 (0)