Skip to content

Commit

Permalink
Fix duplicate note content
Browse files Browse the repository at this point in the history
  • Loading branch information
quantrancse committed Sep 9, 2021
1 parent 11abc6c commit 6ee2461
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hako2epub.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ def get_chapter_content_note(self, soup):
note_div_list = soup.findAll('div', id=re.compile("^note"))
for div in note_div_list:
note_tag = '[' + div.get('id') + ']'
note_reg = '(Note: ' + div.text[10:] + ')'
note_content = div.find('span', class_='note-content_real').text
note_reg = '(Note: ' + note_content + ')'
note_list[note_tag] = note_reg
return note_list

Expand Down

0 comments on commit 6ee2461

Please sign in to comment.