1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

remove single quotes around asciified string

This commit is contained in:
Kelly Brazil
2022-04-25 18:50:36 -07:00
parent fecb2193ae
commit 7b22db50d3

View File

@ -90,8 +90,10 @@ def asciify(string):
conversions. conversions.
""" """
string = string.replace('©', '(c)') string = string.replace('©', '(c)')
string = ascii(string) # the ascii() function adds single quotes around the string
return string.replace(r'\n', '\n') string = ascii(string)[1:-1]
string = string.replace(r'\n', '\n')
return string
def set_env_colors(env_colors=None): def set_env_colors(env_colors=None):