diff --git a/redbot/core/utils/chat_formatting.py b/redbot/core/utils/chat_formatting.py index f722e33c3..a4b0cebfe 100644 --- a/redbot/core/utils/chat_formatting.py +++ b/redbot/core/utils/chat_formatting.py @@ -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 } diff --git a/tests/core/test_utils.py b/tests/core/test_utils.py index 9cab17755..2bfe05900 100644 --- a/tests/core/test_utils.py +++ b/tests/core/test_utils.py @@ -55,11 +55,11 @@ def test_bordered_asymmetrical_2(): def test_bordered_ascii(): expected = textwrap.dedent( """\ - ---------------- --------------- + +--------------+ +-------------+ |one | |four | |two | |five | |three | |six | - ---------------- ---------------""" + +--------------+ +-------------+""" ) col1, col2 = ["one", "two", "three"], ["four", "five", "six"] assert chat_formatting.bordered(col1, col2, ascii_border=True) == expected