Reputation: 2977
After building my site, this strange code is created before included content.
The problem is that it causes a white line before included content
For example: my layout
{% include static/header.html %}
<div id="wrapper">
{% include static/left.html %}
<div id="main">
{% include static/functions.html %}
{% include static/workflow.html %}
<div id="article">
{{content}}
</div>
</div>
</div>
will return in firebug HTML
<div id="wrapper">
<div id="left">
<img src="images/static/left.png" />
</div>
<div id="main">
<img src="images/static/functions001.png" />
<img src="images/static/workflow001.png" />
<div id="article">
<p>CONTENT</p>
</div>
</div>
</div>
while in notepad++ I can see black dots at the beginning of the line. screenshot here: https://i.sstatic.net/b84mC.png
Upvotes: 2
Views: 192
Reputation: 52809
It's you text editor which puts BOM.
Open your file in notepad++ then Encoding->encoding UTF-8 without BOM then save it.
Upvotes: 2