Skip to content

Commit

Permalink
Reverting to ref by label instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Nov 26, 2019
1 parent 273b3f0 commit 5bf3c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imxml2epub.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5bf3c45

Please sign in to comment.