Fix #172: Get text of <DD> tag only, skip children

This commit is contained in:
Arun Prakash Jana 2017-07-18 23:11:46 +05:30
parent 45ab8034cd
commit 730b80f738
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

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