adapter_webnovelcom: Not all paragraphs starting with '<' are HTML. #841

This commit is contained in:
Jim Miller 2022-05-10 21:18:10 -05:00
parent 7c6c82e0ac
commit 9c554375aa

View file

@ -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: