'element.contents' -> 'element.children' for consistency
This commit is contained in:
parent
5d08a496a4
commit
8831724af0
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def _normalise_note(content):
|
|||
out = ""
|
||||
if type(element) == bs4.element.Tag:
|
||||
if element.name == "p":
|
||||
for subitem in element.contents:
|
||||
for subitem in element.children:
|
||||
if type(subitem) == bs4.element.Tag:
|
||||
if subitem.name == "br":
|
||||
lines.append(out)
|
||||
|
|
Loading…
Reference in a new issue