fix qoutation marks

This commit is contained in:
qvalentin 2021-09-04 19:04:10 +02:00
parent e7319c3f1a
commit 3a42e34a69
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ from pygments.lexers import guess_lexer_for_filename
def render_gist_js(code, path):
template = Template("""script = document.querySelector('script[src$="{{ path }}"]')
script.insertAdjacentHTML( 'afterend','{{ code|tojson }}' );""")
script.insertAdjacentHTML( 'afterend',{{ code|tojson }} );""")
return template.render(code=code, path=path)
return template.render(code=str(code), path=path)
class HTTPRequestHandler(BaseHTTPRequestHandler):