Index: cms/converters.py |
diff --git a/cms/converters.py b/cms/converters.py |
index 34ded27a78058824d5e34abef7c6f2975350411d..fa7ef2cd773795eeacb0b850b38a0ca00bb68c4b 100644 |
--- a/cms/converters.py |
+++ b/cms/converters.py |
@@ -142,8 +142,8 @@ class Converter: |
result = default |
# Insert fixed strings |
- for i in range(len(fixed_strings)): |
- result = re.sub(r"\{%d\}" % (i + 1), fixed_strings[i], result, 1) |
+ for i, fixed_string in enumerate(fixed_strings, 1): |
+ result = result.replace("{%d}" % i, fixed_string) |
# Insert attributes |
result = escape(result) |