[14] fix weird template edge case

pull/2053/head
meisnate12 6 months ago
parent eb7c305099
commit d7468c3062

@ -1 +1 @@
2.0.1-develop13 2.0.1-develop14

@ -514,7 +514,7 @@ class DataFile:
return actual_value return actual_value
elif f"<<{var}" in str(og_txt): elif f"<<{var}" in str(og_txt):
final = str(og_txt).replace(f"<<{var}>>", str(actual_value)) if f"<<{var}>>" in str(og_txt) else str(og_txt) final = str(og_txt).replace(f"<<{var}>>", str(actual_value)) if f"<<{var}>>" in str(og_txt) else str(og_txt)
if f"<<{var}" in final: if f"<<{var}" in final and var not in variables:
match = re.search(f"<<({var}([+-])(\\d+))>>", final) match = re.search(f"<<({var}([+-])(\\d+))>>", final)
if match: if match:
try: try:

Loading…
Cancel
Save