Skip to content

Commit

Permalink
Add the rest text after the last "a" tag in EPUB file
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Apr 27, 2024
1 parent 510caac commit 0c267e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from calibre.customize import InterfaceActionBase

VERSION = (3, 31, 3)
VERSION = (3, 31, 4)


class WordDumbDumb(InterfaceActionBase):
Expand Down
1 change: 1 addition & 0 deletions epub.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def insert_anchor_elements(self) -> None:
last_p_end = occurrence.paragraph_end
last_p_text = paragraph_text

new_xhtml_str += escape(last_p_text[last_w_end:])
new_xhtml_str += xhtml_str[last_p_end:]

# add epub namespace and CSS
Expand Down

0 comments on commit 0c267e6

Please sign in to comment.