Skip to content

Commit

Permalink
Fix broken overflow on wide unusual characters
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robinwhittleton committed Apr 10, 2024
1 parent ac72b31 commit f74b33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/commands/find_unusual_characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f74b33e

Please sign in to comment.