Skip to content

Commit

Permalink
Improved bio tools parsing (#70)
Browse files Browse the repository at this point in the history
* improved parsing

* linting

* improved

* uups
  • Loading branch information
paulzierep authored Mar 12, 2024
1 parent 8c9225c commit f34d3f0
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 @@ -206,7 +206,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 f34d3f0

Please sign in to comment.