Skip to content

Commit

Permalink
epub (and kobo?): fix unclosed <br> tags in .xhtml files
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 9, 2025
1 parent 4a8a64f commit fbf79fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyglossary/ebook_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def is_new(self, prefix: str) -> bool:

def add(self, entry: EntryType, prefix: str) -> None:
word = entry.s_word
defi = entry.defi
defi = entry.defi.replace("<br>", "<br/>").replace("<BR>", "<BR/>")
if not self.first_word:
self.first_word = word
self.last_word = word
Expand Down
2 changes: 1 addition & 1 deletion tests/g_ebook_epub2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_convert_txt_epub_1(self):
"100-en-fa",
testId="a1",
checkZipContents=False,
sha1sum="f3daca476e1e083e7252d92d6a1a1a7b75f1320a",
sha1sum="86aaea126cc4c2a471c7b60ea35a32841bf4d4b7",
)

def test_convert_to_epub_1(self):
Expand Down

0 comments on commit fbf79fe

Please sign in to comment.