Skip to content

Commit 35917ec

Browse files
rumpelseppastanin
authored andcommitted
1 parent f49e27e commit 35917ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tabulate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ def escape_char(c):
207207
tabulate_formats = list(sorted(_table_formats.keys()))
208208

209209

210-
_invisible_codes = re.compile("\x1b\[\d*m") # ANSI color codes
211-
_invisible_codes_bytes = re.compile(b"\x1b\[\d*m") # ANSI color codes
210+
_invisible_codes = re.compile(r"\x1b\[\d*m|\x1b\[\d*\;\d*\;\d*m") # ANSI color codes
211+
_invisible_codes_bytes = re.compile(b"\x1b\[\d*m|\x1b\[\d*\;\d*\;\d*m") # ANSI color codes
212212

213213

214214
def simple_separated_format(separator):

0 commit comments

Comments
 (0)