From f74b33e1e9518e18e7de521ce9628888b26d42cf Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Wed, 10 Apr 2024 17:55:08 +0200 Subject: [PATCH] Fix broken overflow on wide unusual characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Noticed that a 〃 DITTO MARK is apparently too wide for a single character, which means that the width=1 setup in rich.table converts it to an ellipsis in the Terminal. Which was confusing. Easy fix is just to remove the width constraint. --- se/commands/find_unusual_characters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/se/commands/find_unusual_characters.py b/se/commands/find_unusual_characters.py index 77a2090a..fe8a049d 100644 --- a/se/commands/find_unusual_characters.py +++ b/se/commands/find_unusual_characters.py @@ -140,7 +140,7 @@ def find_unusual_characters(plain_output: bool) -> int: else: table = Table(show_header=False, show_lines=True, box=box.HORIZONTALS) - table.add_column("Character", style="bold", width=1, no_wrap=True) + table.add_column("Character", style="bold", no_wrap=True) table.add_column("Code point", style="dim", no_wrap=True) table.add_column("Name") table.add_column("Count", style="dim", no_wrap=True)