Skip to content

Commit

Permalink
Remove label also in nonumber tables
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Jun 23, 2021
1 parent 434fb4d commit 624d241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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: <2021-06-22 19:31:21 (kthoden)>
# Time-stamp: <2021-06-23 09:02:36 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -1593,6 +1593,8 @@ class FootnoteError(Exception):
xmlTable.remove(xmlTable.find(".//EOAtablelabel"))
else:
logging.info("Table has no caption")
xmlTable.find(".//EOAtablelabel").clear()
xmlTable.remove(xmlTable.find(".//EOAtablelabel"))
xmlTable.find(".//EOAtablecaption").clear()
xmlTable.remove(xmlTable.find(".//EOAtablecaption"))
# Analyze Width and Alignment of the Columns
Expand Down

0 comments on commit 624d241

Please sign in to comment.