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

@@ -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