Fix
This commit is contained in:
parent
ced9c0b54f
commit
9ed97d229d
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue