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 %}