Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
If caption is missing, convert to figurenonumber
Signed-off-by: kthoden <kthoden@gwdg.de>
  • Loading branch information
kthoden committed Feb 8, 2019
1 parent 317ab43 commit 4c7aa98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fix_tei.py
Expand Up @@ -302,7 +302,10 @@ def make_figure_elements(list_of_figures, figure_directory):
parent_tag.append(yenda_command)

else:
logging.info("The figure string could not be split by '!': %s" % etree.tostring(graphic))
logging.info(f"The figure string could not be split by '!'. Adding graphic without caption.")
graphic.set("scale", "50")
graphic.set("url", figure_directory + os.path.sep + parts[0])
parent_tag.set("n", "nonumber")

return bad_images
# def make_figure_elements ends here
Expand Down

0 comments on commit 4c7aa98

Please sign in to comment.