Skip to content

Commit

Permalink
DigitDisplay: more followup on PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdorneles committed Jul 25, 2023
1 parent fc5d189 commit a67ed63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/textual/widgets/_digit_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

_character_map: dict[str, str] = {}

# in the mappings below, we use underscores to make spaces more visible,
# we will strip them out later
_VIRTUAL_SPACE = "·"

# in the mappings below, we use a dot instead of spaces to make them more
# visible, we will strip them out later
_character_map[
"0"
] = """
Expand Down Expand Up @@ -189,8 +191,6 @@
"""


_VIRTUAL_SPACE = "·"

# here we strip spaces and replace virtual spaces with spaces
_character_map = {
k: v.strip().replace(_VIRTUAL_SPACE, " ") for k, v in _character_map.items()
Expand Down

0 comments on commit a67ed63

Please sign in to comment.