【发布时间】:2016-02-24 11:23:07
【问题描述】:
我习惯于使用 eclipse 自动格式化我的源代码。为此,我选择所有文本并按 Ctrl+Shift+F。 但是以 django 模板文件为例
{% extends "base.html" %}
{% load staticfiles %}
{% block content %}
<div class="row">
...
按 Ctrl+Shift+F 我会得到
{% extends "prototipo/base.html" %} {% load staticfiles %} {% block
content %}
<div class="row">
这会导致 TemplateSyntaxError。 有什么解决方法吗?
【问题讨论】:
标签: django django-templates pydev