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

@ -204,7 +204,7 @@ def _snake_case(line: str) -> str:
def _fixup_separators(line: str) -> str:
"""Normalize separators, and remove first and last separators"""
# normalize separator
line = line.replace('', '|')
line = line.replace('', '|').replace('', '|')
# remove first separator if it is the first char in the line
if line[0] == '|':