From 7b22db50d354c8bd9dea74eb6086f6b5862cc31b Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 25 Apr 2022 18:50:36 -0700 Subject: [PATCH] remove single quotes around asciified string --- jc/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 976ceabb..aaedfbce 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -90,8 +90,10 @@ def asciify(string): conversions. """ string = string.replace('©', '(c)') - string = ascii(string) - return string.replace(r'\n', '\n') + # the ascii() function adds single quotes around the string + string = ascii(string)[1:-1] + string = string.replace(r'\n', '\n') + return string def set_env_colors(env_colors=None):