mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
formatting
This commit is contained in:
@ -121,10 +121,7 @@ def parse(
|
||||
|
||||
if jc.utils.has_data(data):
|
||||
|
||||
|
||||
|
||||
for line in filter(None, data.splitlines()):
|
||||
|
||||
# remove initial drawing characters
|
||||
line = re.sub(r'^([│ ├─└─|`-]+)/', _replace, line, count=1)
|
||||
table.append(line)
|
||||
|
Reference in New Issue
Block a user