Fix #172: Get text of <DD> tag only, skip children
This commit is contained in:
parent
45ab8034cd
commit
730b80f738
2
buku.py
2
buku.py
@ -1675,7 +1675,7 @@ class BukuDb:
|
||||
comment_tag = tag.findNextSibling('dd')
|
||||
|
||||
if comment_tag:
|
||||
desc = comment_tag.text[0:comment_tag.text.find('\n')]
|
||||
desc = comment_tag.find(text=True, recursive=False)
|
||||
|
||||
self.add_rec(tag['href'], tag.string, parse_tags([tag['tags']])
|
||||
if tag.has_attr('tags') else None, desc, 0, True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user