Make bordered() use + for corners if ascii_border=True (#4097)

This commit is contained in:
jack1142
2020-07-23 13:32:41 +02:00
committed by GitHub
parent 5fba9bc4ed
commit 8c484f86a9
2 changed files with 6 additions and 6 deletions

View File

@@ -165,10 +165,10 @@ def bordered(*columns: Sequence[str], ascii_border: bool = False) -> str:
"""
borders = {
"TL": "-" if ascii_border else "", # Top-left
"TR": "-" if ascii_border else "", # Top-right
"BL": "-" if ascii_border else "", # Bottom-left
"BR": "-" if ascii_border else "", # Bottom-right
"TL": "+" if ascii_border else "", # Top-left
"TR": "+" if ascii_border else "", # Top-right
"BL": "+" if ascii_border else "", # Bottom-left
"BR": "+" if ascii_border else "", # Bottom-right
"HZ": "-" if ascii_border else "", # Horizontal
"VT": "|" if ascii_border else "", # Vertical
}