Skip to content

Commit

Permalink
Fix #172: Get text of <DD> tag only, skip children
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jul 18, 2017
1 parent 45ab803 commit 730b80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buku.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ def importdb(self, filepath):
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)
Expand Down

0 comments on commit 730b80f

Please sign in to comment.