From: Radek Czajka Date: Wed, 10 Apr 2024 11:31:22 +0000 (+0200) Subject: bugfix X-Git-Tag: 24.4.1 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/4b0833f222da430d31356b6f065e56073b849d0f?ds=inline bugfix --- diff --git a/setup.py b/setup.py index 1368375..a11c86e 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='24.4', + version='24.4.1', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com', diff --git a/src/librarian/pdf.py b/src/librarian/pdf.py index e5cf5bd..de09755 100644 --- a/src/librarian/pdf.py +++ b/src/librarian/pdf.py @@ -196,7 +196,7 @@ def add_fundraising(doc, fundraising): naglowek.addprevious(spot) spots.append(spot) spot = etree.Element('f_spot') - doc.getroot()[-1][-1].append(spot) + doc.getroot()[-1].append(spot) spots.append(spot) e = len(spots) nfunds = len(fundraising)