From c4938b5785540c300939b4c4aedbb875d92f8009 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Wed, 22 Apr 2020 15:11:35 +0200 Subject: [PATCH] This one was hard to find, replace in structure conversions now works :) --- src/lib/structure_conversions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/structure_conversions.py b/src/lib/structure_conversions.py index afce583..83a93cb 100644 --- a/src/lib/structure_conversions.py +++ b/src/lib/structure_conversions.py @@ -37,8 +37,8 @@ def convert_structure(structure): for vmatch, vfrom, vto in structure_conversions: if vmatch.test(structure): - # for some reason some times this fails to do correct replacement, but this helps #FML - # structure += " " + # we need to remove replace alias here as we want to use javascript's one + __pragma__('noalias', 'replace') return structure.replace(vfrom, vto).strip() return None