From 194c690f85354b572fd958eabfbeef6c4a62ed6d Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Fri, 14 Jan 2022 19:06:58 +0000 Subject: [PATCH] Merged in [19834] from lars@eggert.org: 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. - Legacy-Id: 19847 Note: SVN reference [19834] has been migrated to Git commit f185da354a8d5d5b23d50174efc2f20a7738d038 --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 51e54e122..7592e7443 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,6 +25,7 @@ django-stubs==1.6.0 # The django-stubs version used determines the the mypy ver django-tastypie==0.14.3 # Django 2.1 will require 0.14.2; Django 3.0 will require 0.14.3 django-webtest>=1.9.7 django-widget-tweaks>=1.4.2 +djhtml>=1.4.11 # To auto-indent templates via "djlint --profile django --reformat" docutils>=0.12,!=0.15 #factory-boy>=3 #Faker>=0.8.11 # from factory-boy # Faker 0.8.9,0.8.10 sometimes return string names instead of unicode.