about summary refs log tree commit diff stats
path: root/common
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-04 18:58:41 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-04 18:58:41 +0200
commitcf174dc192c089fd1b57cf46322d963536346f0c (patch)
tree9caaba7f9a93838aa8f3f0f4e2f0a8d1844d7912 /common
parentfix(common/init): Detect latex project by the `watch.sh` file (diff)
downloadflake-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.
Diffstat (limited to 'common')
-rw-r--r--common/init3
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