diff --git a/src/scripts/migrate.py b/src/scripts/migrate.py index 088c9786..bea56d30 100644 --- a/src/scripts/migrate.py +++ b/src/scripts/migrate.py @@ -163,6 +163,8 @@ def slurp_docs(): ontology_name = os.path.basename(path).replace(FILENAME_GLOB_PATTERN[1:], '') ontology_page_relpath = f'./migrate_{ontology_name.lower()}.md' df = pd.read_csv(path, sep='\t').fillna('') + # Fix issue where the | in the `parents` column is causing table rendering issues + df['parents'] = df['parents'].apply(lambda x: x.replace('|', ',')) # Individual pages relpath = os.path.realpath(path).replace(PROJECT_DIR + '/', '') instantiated_str: str = Template(JINJA_ONTO_PAGES).render(