Hi,
Recently there has been a change to the text generation to use regex for placing variable values inside templates instead of string.format. How do you place “{” or “}” inside a template to do something like this:
It does not work as it is. Looks like a patch is needed somewhere around
I briefly tested out and adding open curly braces to blacklist character should do it.
>>> text = re.sub(r'{([^\n,{]+?)}', r'{0[\1]}', '{{"variable":"{value}"}}')
>>> text
'{{"variable":"{0[value]}"}}'
>>> text.format({"value": "new value"})
'{"variable":"new value"}'
I can find time this weekend to patch but if you need earlier, plz try the code above and see.