mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
simple f-string replacement
This commit is contained in:
parent
2610b630a9
commit
2b5c2bbda6
1 changed files with 2 additions and 2 deletions
|
@ -306,9 +306,9 @@ def em_surround(string, regex_escape=False):
|
||||||
string = escape(string)
|
string = escape(string)
|
||||||
|
|
||||||
if regex_escape:
|
if regex_escape:
|
||||||
return r'<em class="font-italic">%s<\/em>' % string
|
return fr'<em class="font-italic">{string}<\/em>'
|
||||||
else:
|
else:
|
||||||
return '<em class="font-italic">%s</em>' % string
|
return f'<em class="font-italic">{string}</em>'
|
||||||
|
|
||||||
|
|
||||||
def localize_list(list, surround_with_em=True):
|
def localize_list(list, surround_with_em=True):
|
||||||
|
|
Loading…
Reference in a new issue