From 725a5dce7556240751815c000d9c082103a4bb4b Mon Sep 17 00:00:00 2001 From: paulzierep Date: Thu, 14 Mar 2024 11:19:07 +0100 Subject: [PATCH] fix bio.tools parsing --- bin/extract_galaxy_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/extract_galaxy_tools.py b/bin/extract_galaxy_tools.py index 0caa16a7..3baa3601 100644 --- a/bin/extract_galaxy_tools.py +++ b/bin/extract_galaxy_tools.py @@ -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