diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-04 18:58:41 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-04 18:58:41 +0200 |
commit | cf174dc192c089fd1b57cf46322d963536346f0c (patch) | |
tree | 9caaba7f9a93838aa8f3f0f4e2f0a8d1844d7912 | |
parent | fix(common/init): Detect latex project by the `watch.sh` file (diff) | |
download | flake-templates-cf174dc192c089fd1b57cf46322d963536346f0c.tar.gz flake-templates-cf174dc192c089fd1b57cf46322d963536346f0c.zip |
fix(common/init): Ensure that the template is properly formatted
This includes avoiding removing linebreaks (as that breaks the jinja2 syntax) and removing a vim modeline, as it would otherwise be copied to the file the template is applied to.
-rw-r--r-- | common/init | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/init b/common/init index 557aa90..06409e5 100644 --- a/common/init +++ b/common/init @@ -110,7 +110,7 @@ fi prompt LICENSE_URL "The url of the license" "$default_license_url" if [ -e ./.reuse/templates/default.jinja2 ]; then - cat <<EOF | fmt --uniform-spacing --width=75 >./.reuse/templates/default.jinja2 + cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2 {% for copyright_line in copyright_lines %} {{ copyright_line }} {% endfor %} @@ -125,7 +125,6 @@ This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION. You should have received a copy of the License along with this program. If not, see <$LICENSE_URL>. -<!-- vim: ft=htmldjango --> EOF fi |