diff --git a/crazy_functions/pdf_fns/report_gen_html.py b/crazy_functions/pdf_fns/report_gen_html.py index e63c164..2182921 100644 --- a/crazy_functions/pdf_fns/report_gen_html.py +++ b/crazy_functions/pdf_fns/report_gen_html.py @@ -23,8 +23,10 @@ class construct_html(): }, """ def std(str): - str = str.replace(r'`',r'\`') - str += ' ' + str = str.replace(r'`',r'`') + if str.endswith("\\"): str += ' ' + if str.endswith("}"): str += ' ' + if str.endswith("$"): str += ' ' return str template_ = template