mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
fix: retain line breaks
This commit is contained in:
@@ -69,5 +69,6 @@ class ScrapeWebsiteTool(BaseTool):
|
||||
parsed = BeautifulSoup(page.text, "html.parser")
|
||||
|
||||
text = parsed.get_text(" ")
|
||||
text = re.sub('\s+', ' ', text)
|
||||
text = re.sub('[ \t]+', ' ', text)
|
||||
text = re.sub('\\s+\n\\s+', '\n', text)
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user