Spaces:
Sleeping
Sleeping
Update tools/visit_webpage.py
Browse files- tools/visit_webpage.py +1 -1
tools/visit_webpage.py
CHANGED
@@ -30,7 +30,7 @@ class VisitWebpageTool(Tool):
|
|
30 |
markdown_content = markdownify(response.text).strip()
|
31 |
|
32 |
# Remove multiple line breaks
|
33 |
-
markdown_content =
|
34 |
|
35 |
return truncate_content(markdown_content, 10000)
|
36 |
|
|
|
30 |
markdown_content = markdownify(response.text).strip()
|
31 |
|
32 |
# Remove multiple line breaks
|
33 |
+
markdown_content = response.sub(r"\n{3,}", "\n\n", markdown_content)
|
34 |
|
35 |
return truncate_content(markdown_content, 10000)
|
36 |
|