From a334af1a1f5f44b5c53d0bd3ec1f23b2b4036f83 Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Mon, 10 Jul 2023 15:33:42 +0100 Subject: [PATCH] fix: remove spaces and EOL from nonce attr --- 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 943c11d25bda8..a49c0eaa72245 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 %}