google / google/yapf

yapf breaks Django template blocks

Open
#529 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

`yapf` breaks Django template blocks according to the `column_limit` setting. For example, for `column_limit = 120` source line
`{% extends '_layouts/base.html' %} {% load thumbnail %} {% block title %}All Albums{% endblock title %} {% block headline %}`
converted with `yapf` to the
```
{% extends '_layouts/base.html' %} {% load thumbnail %} {% block title %}All Albums{% endblock title %} {% block headline
%}
```
It is wrong. `yapf` should never ever breaks Django template blocks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.