Format Document strips tag separators in Django templates


When Format Document or Format Selection command is invoked, either explicitly or automatically (e.g. when pasting HTML), the HTML formatter strips the tag separators - {{ }} {% %} {# #} - from markup prior to formatting, which causes tags to be reformatted as plain text.

This is a regression caused by https://pytools.codeplex.com/workitem/2041 due to a bug in VS. A fix is planned for the upcoming VS update.


pminaev wrote Jan 23 at 9:49 PM

The fix will be in the next VS update after the just-released Update 1.