【发布时间】:2012-06-10 19:09:17
【问题描述】:
在模板中,我使用以下代码:
{% load i18n %}
{% include "header.html" %}
{% include "top_bar.html" %}
但这会产生几个回车符 (\n),因为我用回车符分隔每个 include 和 load。我不想像这样连接包含:
{% include "header.html" %}{% include "top_bar.html" %}
因为它不可读。
有没有办法避免这些生成的新行?
【问题讨论】:
标签: django django-templates carriage-return