From 5bf3c45a5c0b822eb425038c2ceb14722694dbe0 Mon Sep 17 00:00:00 2001 From: kthoden Date: Tue, 26 Nov 2019 12:39:20 +0100 Subject: [PATCH] Reverting to ref by label instead of id --- src/imxml2epub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imxml2epub.py b/src/imxml2epub.py index 5d4296d..8277434 100755 --- a/src/imxml2epub.py +++ b/src/imxml2epub.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2019-11-25 21:35:59 (kthoden)> +# Time-stamp: <2019-11-26 12:30:59 (kthoden)> """ Convert a customized DocBook XML file into a set of files that constitute the contents of an EPUB file. @@ -1478,7 +1478,7 @@ class FootnoteError(Exception): strTableCaption = xmlTable.find(".//EOAtablecaption").text or "" # logging.info("Working on ", strTableCaption) if strTableCaption != "nonumber": - intTableNumber = dictTables[xml_table_id] + intTableNumber = dictTables[xmlTable.find(".//EOAtablelabel").text] xmlTableCaption = etree.Element("p") xmlTableCaption.text = str(intTableNumber) + " " + strTableCaption if xmlTable.find(".//EOAtablecaption").getchildren() is not None: