Skip to content

Commit

Permalink
fix bio.tools parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Mar 14, 2024
1 parent 7749357 commit 725a5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_xref(el: et.Element, attrib_type: str) -> Optional[str]:
for xref in xref_items:
if xref is not None and xref.attrib["type"] == attrib_type:
# should not contain any space of linebreak
xref_sanitized = str(xref.text).replace("\n", "").replace(" ", "")
xref_sanitized = str(xref.text).strip()
return xref_sanitized
return None

Expand Down

0 comments on commit 725a5dc

Please sign in to comment.