This commit is contained in:
Cyril NOVEL 2026-06-17 21:07:34 +02:00
commit 9ed97d229d

View file

@ -34,7 +34,7 @@ class Article:
# Handle text # Handle text
content = [f"<p>{x.text}</p>" for x in soup.find("div", id="content").find_all("p")] content = [f"<p>{x.text}</p>" for x in soup.find("div", id="content").find_all("p")]
self.text = f"<div>{" ".join(content)}</div>" self.text = f"<div>{' '.join(content)}</div>"
def __str__(self): def __str__(self):