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:
@ -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)
|
||||
|
Reference in New Issue
Block a user