mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-28 01:42:34 +02:00
adapter_webnovelcom: Not all paragraphs starting with '<' are HTML. #841
This commit is contained in:
parent
7c6c82e0ac
commit
9c554375aa
1 changed files with 2 additions and 2 deletions
|
|
@ -245,8 +245,8 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
p = paragraph["content"]
|
||||
# logger.debug(p)
|
||||
## sometimes wrapped in <p>, sometimes not. Treat as html
|
||||
## if starts with <
|
||||
if p.startswith('<'):
|
||||
## if starts with <p>
|
||||
if p.startswith('<p>'):
|
||||
p = self.make_soup(p)
|
||||
## make_soup--html5lib/bs really--adds a full html tag
|
||||
## set like:
|
||||
|
|
|
|||
Loading…
Reference in a new issue