From 57d08ea9fe9a80783bc380298333aef7219224c6 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Mon, 12 Feb 2024 11:28:11 +0100 Subject: [PATCH] Fix: Remove newline from alias template (#220) * Fix: Remove newline from alias template * ci: auto fixes from pre-commit hooks for more information, see https://pre-commit.ci * Remove file-end-fixer from precommit bot * More newlines to go --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 1 - djangocms_alias/templates/djangocms_alias/default/alias.html | 2 +- djangocms_alias/test_utils/text/templates/text/text.html | 2 +- .../templates/djangocms_alias/custom_alias_template/alias.html | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8810c118..287dea71 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,5 +31,4 @@ repos: rev: v4.5.0 hooks: - id: check-yaml - - id: end-of-file-fixer - id: trailing-whitespace diff --git a/djangocms_alias/templates/djangocms_alias/default/alias.html b/djangocms_alias/templates/djangocms_alias/default/alias.html index 873ab08b..a04b049d 100644 --- a/djangocms_alias/templates/djangocms_alias/default/alias.html +++ b/djangocms_alias/templates/djangocms_alias/default/alias.html @@ -1 +1 @@ -{% load djangocms_alias_tags %}{% render_alias instance.alias %} +{% load djangocms_alias_tags %}{% render_alias instance.alias %} \ No newline at end of file diff --git a/djangocms_alias/test_utils/text/templates/text/text.html b/djangocms_alias/test_utils/text/templates/text/text.html index a7e9c555..041f8ea6 100644 --- a/djangocms_alias/test_utils/text/templates/text/text.html +++ b/djangocms_alias/test_utils/text/templates/text/text.html @@ -1 +1 @@ -{{ instance.body|safe }} +{{ instance.body|safe }} \ No newline at end of file diff --git a/tests/templates/djangocms_alias/custom_alias_template/alias.html b/tests/templates/djangocms_alias/custom_alias_template/alias.html index bdffa336..86f14533 100644 --- a/tests/templates/djangocms_alias/custom_alias_template/alias.html +++ b/tests/templates/djangocms_alias/custom_alias_template/alias.html @@ -1 +1 @@ -{% load djangocms_alias_tags %}{% render_alias instance.alias %} +{% load djangocms_alias_tags %}{% render_alias instance.alias %} \ No newline at end of file