Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.

Unnatural formatting of dict/list dict values #74

Open
jleclanche opened this issue Mar 16, 2018 · 2 comments
Open

Unnatural formatting of dict/list dict values #74

jleclanche opened this issue Mar 16, 2018 · 2 comments

Comments

@jleclanche
Copy link

Input:

TEMPLATES = [{
	"BACKEND": "django.template.backends.django.DjangoTemplates",
	"DIRS": [
		"/some/path/to/some/example/directory",
	],
	"APP_DIRS": True,
	"OPTIONS": {
		"context_processors": [
			"django.template.context_processors.debug",
			"django.template.context_processors.request",
			"django.contrib.auth.context_processors.auth",
			"django.contrib.messages.context_processors.messages",
		],
	},
}]

Output:

TEMPLATES = [
	{
		"BACKEND": "django.template.backends.django.DjangoTemplates",
		"DIRS": ["/some/path/to/some/example/directory"],
		"APP_DIRS": True,
		"OPTIONS":
			{
				"context_processors":
					[
						"django.template.context_processors.debug",
						"django.template.context_processors.request",
						"django.contrib.auth.context_processors.auth",
						"django.contrib.messages.context_processors.messages",
					],
			},
	},
]

I don't know anyone who formats dict values like this and it feels very unnatural.

@jleclanche
Copy link
Author

Looks like this might be addressed some by #52

@FuegoFro
Copy link
Collaborator

It looks like #52 won't actually resolve this issue, but it should be fairly trivial to resolve this once #52 lands. I don't want to add it to that PR since that PR is big enough as is :/ But I will go ping that PR;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants