Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ansitable/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,19 +1376,19 @@ def Pandas(df, **kwargs):

def _FG(self, c):
if _unicode and self.color and c is not None:
return fore(c)
return fg(c)
else:
return ""

def _BG(self, c):
if _unicode and self.color and c is not None:
return back(c)
return bg(c)
else:
return ""

def _ATTR(self, c):
if _unicode and self.color and c is not None:
return style(c)
return attr(c)
else:
return ""

Expand Down