Skip to content

Commit

Permalink
Merge pull request #179 from elifesciences/block-index-0
Browse files Browse the repository at this point in the history
Bug fix, support for if inline_graphic_index is 0 in block.py
  • Loading branch information
gnott authored Jan 16, 2025
2 parents 9236bd4 + 753b3f8 commit 1020724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elifecleaner/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging


__version__ = "0.74.0"
__version__ = "0.74.1"


LOGGER = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion elifecleaner/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def graphic_href_list(body_tag, index_groups):
"collect a list of xlink:href values of graphic tags from the index_groups"
href_list = []
for group in index_groups:
if group.get("inline_graphic_index"):
if group.get("inline_graphic_index") is not None:
inline_graphic_p = body_tag[group.get("inline_graphic_index")]
inline_graphic_tag = inline_graphic_tag_from_tag(inline_graphic_p)
image_href = utils.xlink_href(inline_graphic_tag)
Expand Down

0 comments on commit 1020724

Please sign in to comment.