From 0c267e601173b7e8bfb16737f91eeef2b1000741 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Sat, 27 Apr 2024 15:53:43 +0800 Subject: [PATCH] Add the rest text after the last "a" tag in EPUB file --- __init__.py | 2 +- epub.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 938247e..4f470b3 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,6 @@ from calibre.customize import InterfaceActionBase -VERSION = (3, 31, 3) +VERSION = (3, 31, 4) class WordDumbDumb(InterfaceActionBase): diff --git a/epub.py b/epub.py index c318479..ae3a9c3 100644 --- a/epub.py +++ b/epub.py @@ -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