Skip to content

Commit

Permalink
Update support.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mikahanninen committed Nov 18, 2024
1 parent c8a08df commit da68305
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions actions/browsing/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ def _clean_text(text):
# Replace multiple spaces and tabs with a single space
text = re.sub(r"[ \t]+", " ", text)
# Replace multiple line breaks (possibly separated by spaces) with a single line break
text = re.sub(
r"(\n[ \t]*){2,}", "\n", text
) # Change here to match line breaks with spaces
text = re.sub(r"(\n[ \t]*){2,}", "\n", text)
# Strip leading and trailing whitespace
text = text.strip()
return text
Expand Down

0 comments on commit da68305

Please sign in to comment.