1

Resolved

Double brace completion in django templates

description

The HTML editor is adding an extra close brace.
{% %}}

comments

pminaev wrote Jan 23 at 12:27 AM

The problem here is that there are two things being completed at the same time. When auto brace completion is turned on, the HTML editor automatically completes { with }. So when you're typing {%, as soon as { is typed it inserts }. Then when you type %, it sees {% and auto-completes that with %} while leaving the original auto-completed }.

Since we don't actually have full-fledged completion for all Django templates (you don't get completion for {{ or {# - it's an API limit, and we'd have to roll our own from scratch to work around that), I'm just going to disable completion for {% to work around this problem. We can look at full-fledged completion in the future.