Skip to content

Commit

Permalink
Fall back to the most basic whitespace matching
Browse files Browse the repository at this point in the history
Seems we're happy that \s along won't be too greedy.
  • Loading branch information
davep committed Mar 25, 2024
1 parent 30ff0e8 commit 352d991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/widgets/_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def build_from_token(self, token: Token) -> None:
content.append(
# Ensure repeating spaces and/or tabs get squashed
# down to a single space.
re.sub(r"[ \t]+", " ", child.content),
re.sub(r"\s+", " ", child.content),
style_stack[-1],
)
if child.type == "hardbreak":
Expand Down

0 comments on commit 352d991

Please sign in to comment.