From 6b4d5a6407d740beb4158b302194a62a4108a8a6 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 5 May 2022 11:09:59 -0400 Subject: [PATCH] chore: [autoapprove] update readme_gen.py to include autoescape True (#1429) --- .../python_library/scripts/readme-gen/readme_gen.py.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 b/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 index d309d6e97..91b59676b 100644 --- a/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 +++ b/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 @@ -28,7 +28,10 @@ import yaml jinja_env = jinja2.Environment( trim_blocks=True, loader=jinja2.FileSystemLoader( - os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + os.path.abspath(os.path.join(os.path.dirname(__file__), "templates")) + ), + autoescape=True, +) README_TMPL = jinja_env.get_template('README.tmpl.rst')