mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
add fancy separators
This commit is contained in:
@ -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('--'),
|
||||
|
@ -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('─┘'),
|
||||
|
Reference in New Issue
Block a user