From f185da354a8d5d5b23d50174efc2f20a7738d038 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Wed, 12 Jan 2022 07:04:16 +0000 Subject: [PATCH] Add djhtml (https://github.com/rtts/djhtml), for auto-reformatting of the Django templates via "djlint --profile django --reformat". It still has some bugs and issues, esp. on complex templates and with regards to whitespace after links, but those are manageable, and the benefits of having consistently-formatted templates IMO outweigh them. Commit ready for merge. - Legacy-Id: 19834 --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3a41acf32..f2a1664f4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -72,4 +72,5 @@ Unidecode>=0.4.18,<1.2.0 #wsgiref>=0.1.2 xml2rfc>=2.35.0 xym>=0.4.4,!=0.4.7,<1.0 -#zxcvbn-python>=4.4.14 # Not needed until we do back-end password entropy validation \ No newline at end of file +#zxcvbn-python>=4.4.14 # Not needed until we do back-end password entropy validation +djhtml>=1.4.11 # To auto-indent templates via "djlint --profile django --reformat" \ No newline at end of file