From b809815436dd9411cd6b154e89d899fe23174ad0 Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Mon, 10 Jul 2023 16:21:45 +0100 Subject: [PATCH] fix: remove spaces and EOL from nonce attr (#24644) --- superset/templates/superset/macros.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/superset/templates/superset/macros.html b/superset/templates/superset/macros.html index 943c11d25b..a49c0eaa72 100644 --- a/superset/templates/superset/macros.html +++ b/superset/templates/superset/macros.html @@ -16,8 +16,8 @@ specific language governing permissions and limitations under the License. #} -{% macro get_nonce() %} - {% if csp_nonce is defined %} - {{ csp_nonce() }} - {% endif %} -{% endmacro %} +{% macro get_nonce() -%} + {%- if csp_nonce is defined -%} + {{- csp_nonce() -}} + {%- endif %} +{%- endmacro %}