You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by dp...@apache.org on 2023/07/10 15:21:54 UTC
[superset] branch master updated: fix: remove spaces and EOL from nonce attr (#24644)
This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new b809815436 fix: remove spaces and EOL from nonce attr (#24644)
b809815436 is described below
commit b809815436dd9411cd6b154e89d899fe23174ad0
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Mon Jul 10 16:21:45 2023 +0100
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 %}