diff --git a/jc/parsers/asciitable.py b/jc/parsers/asciitable.py index c45805e0..17624fb0 100644 --- a/jc/parsers/asciitable.py +++ b/jc/parsers/asciitable.py @@ -174,6 +174,10 @@ def _is_separator(line: str) -> bool: strip_line.startswith('┌─') and strip_line.endswith('─┐'), strip_line.startswith('├─') and strip_line.endswith('─┤'), strip_line.startswith('└─') and strip_line.endswith('─┘'), + strip_line.startswith('┏━') and strip_line.endswith('━┓'), + strip_line.startswith('┡━') and strip_line.endswith('━┩'), + strip_line.startswith('──') and strip_line.endswith('──'), + strip_line.startswith('══') and strip_line.endswith('══'), strip_line.startswith('+=') and strip_line.endswith('=+'), strip_line.startswith('+-') and strip_line.endswith('-+'), strip_line.startswith('--') and strip_line.endswith('--'), diff --git a/jc/parsers/asciitable_m.py b/jc/parsers/asciitable_m.py index c8907868..a8eb2ddc 100644 --- a/jc/parsers/asciitable_m.py +++ b/jc/parsers/asciitable_m.py @@ -162,6 +162,7 @@ def _table_sniff(string: str) -> str: if any(( line.startswith('╞═') and line.endswith('═╡'), line.startswith('├─') and line.endswith('─┤'), + line.startswith('┡━') and line.endswith('━┩'), line.startswith('+=') and line.endswith('=+'), line.startswith('+-') and line.endswith('-+') )): @@ -183,6 +184,8 @@ def _is_separator(line: str) -> bool: strip_line.startswith('╒═') and strip_line.endswith('═╕'), strip_line.startswith('╞═') and strip_line.endswith('═╡'), strip_line.startswith('╘═') and strip_line.endswith('═╛'), + strip_line.startswith('┏━') and strip_line.endswith('━┓'), + strip_line.startswith('┡━') and strip_line.endswith('━┩'), strip_line.startswith('┌─') and strip_line.endswith('─┐'), strip_line.startswith('├─') and strip_line.endswith('─┤'), strip_line.startswith('└─') and strip_line.endswith('─┘'),