微调HTML

This commit is contained in:
binary-husky 2023-10-18 18:26:19 +08:00
parent 6c87c55a8a
commit c18a235d33

View File

@ -23,8 +23,10 @@ class construct_html():
}, },
""" """
def std(str): def std(str):
str = str.replace(r'`',r'\`') str = str.replace(r'`',r'`')
str += ' ' if str.endswith("\\"): str += ' '
if str.endswith("}"): str += ' '
if str.endswith("$"): str += ' '
return str return str
template_ = template template_ = template