Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.14.1 June 12, 2026
- fixed bug where text directly under body is deleted.
- updated idna and beautifulsoup dependencies

0.14.0 May 20, 2026
- pkg_resources is deprecated, removed in Python 3.12. switched to using importlib.
- Ebookmaker will no longer run for Python < 3.7
Expand Down
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ html5lib = "*"
cchardet = "==2.2.0a2"
lxml = ">=6.0.0"
libgutenberg = {extras = ["covers"], version = ">=0.10.34"}
beautifulsoup4 = "*"
idna = "*"
ebookmaker = {file = ".", editable = true}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = ebookmaker

version = 0.14.0
version = 0.14.1

[options]
package_dir=
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from setuptools import setup

VERSION = '0.14.0'
VERSION = '0.14.1'

if __name__ == "__main__":

Expand Down
2 changes: 1 addition & 1 deletion src/ebookmaker/Version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = '0.14.0'
VERSION = '0.14.1'
GENERATOR = 'Ebookmaker %s by Project Gutenberg'
2 changes: 2 additions & 0 deletions src/ebookmaker/writers/HTMLWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ def replace_boilerplate(job, tree):
pg_smallprint.getparent().remove(pg_smallprint)

for pg_wrapper in xpath(tree, f'//*[@class="{BODY_WRAPPER_CLASS}"]'):
if pg_wrapper.text:
continue
for elem in pg_wrapper:
if elem != None:
break # not empty
Expand Down