diff --git a/VERSION b/VERSION index 9262b889..4446b45c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.2-develop17 +1.17.2-develop18 diff --git a/modules/overlay.py b/modules/overlay.py index f1f1bd30..bcaefeee 100644 --- a/modules/overlay.py +++ b/modules/overlay.py @@ -284,7 +284,10 @@ class Overlay: if text in old_special_text: text_mod = text[-1] if text[-1] in ["0", "%", "#"] else None text = text if text_mod is None else text[:-1] - self.name = f"text(<<{text}#>>)" if text_mod == "#" else f"text(<<{text}%>>{'' if text_mod == '0' else '%'})" + if text_mod is None: + self.name = f"text(<<{text}>>)" + else: + self.name = f"text(<<{text}#>>)" if text_mod == "#" else f"text(<<{text}%>>{'' if text_mod == '0' else '%'})" if "<>", text) if match: