1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-25 00:37:31 +02:00

add bold bar seperator and ANSI code tests

This commit is contained in:
Kelly Brazil
2022-03-22 15:55:59 -07:00
parent cf83e6398b
commit 17c3c2f029
4 changed files with 58 additions and 2 deletions

View File

@ -208,7 +208,7 @@ def _normalize_rows(table: str) -> List[str]:
continue
# data row - remove column separators
line = line.replace('', ' ').replace('|', ' ')
line = line.replace('', ' ').replace('|', ' ').replace('', ' ')
result.append(line)
result[0] = _snake_case(result[0])
@ -244,6 +244,7 @@ def parse(
if jc.utils.has_data(data):
data = _remove_ansi(data)
print(data)
data = _strip(data)
data_list = _normalize_rows(data)
raw_output = _parse_pretty(data_list)