Skip to content

Commit

Permalink
Merge pull request #176 from elifesciences/develop
Browse files Browse the repository at this point in the history
PR for version 0.73.0 release
  • Loading branch information
gnott authored Nov 13, 2024
2 parents 3dea2b0 + a1bb234 commit 7bc2681
Show file tree
Hide file tree
Showing 2 changed files with 8 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.72.0"
__version__ = "0.73.0"


LOGGER = logging.getLogger(__name__)
Expand Down
8 changes: 7 additions & 1 deletion elifecleaner/sub_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,22 +392,28 @@ def pretty_sub_article_xml(root):
"article-id",
"article-title",
"body",
"caption",
"collab",
"contrib",
"contrib-group",
"disp-formula",
"disp-quote",
"fig",
"front-stub",
"given-names",
"kwd",
"kwd-group",
"label",
"name",
"role",
"surname",
"table-wrap",
"title",
"title-group",
]:
for tag in sub_article_tag.findall(".//%s" % tag_name):
tag_new_line_wrap(tag)
# wrap tail only for the following tags
for tag_name in ["anonymous", "etal", "p"]:
for tag_name in ["anonymous", "etal", "graphic", "p"]:
for tag in sub_article_tag.findall(".//%s" % tag_name):
tag_new_line_wrap_tail(tag)

0 comments on commit 7bc2681

Please sign in to comment.