<p>Pretty sure that's just your browser's console trying to tidy things up when you inspect.</p>

<p>If you View Page Source, I'd guess it wouldn't be there.</p>

<p>I also just tested this with your example code on a fresh Craft 3 install on the latest Chrome and Firefox on Windows and the latest Safari on OSX and was not able to reproduce your picture.</p>

CC BY-SA 3.0
2017-12-19T23:11:49.927Z
2017-12-19T23:11:49.927Z
Brad Bell
<p>Thanks for taking the time to replicate this Brad. </p>

<p>You are quite right. This has nothing to do with Craft 3. <strong>Turns out the <a href="https://github.com/tulios/json-viewer" rel="nofollow noreferrer">json-viewer</a> Chrome extension I have installed was adjusting the markup! Uninstalling it did the trick.</strong></p>

<p>I've never seen anything do that before. Should I be remove this question from StackExchange?</p>

<p>Thanks again.</p>

CC BY-SA 3.0
2017-12-19T23:20:27.723Z
2017-12-19T23:20:27.723Z
Mark Notton
<p>So I've got a completely clean install of Craft 3: RC 2. I've installed Redactor, and nothing else. </p>

<p>In the templates/index.twig file; this is all I have: </p>

<pre><code>{% set test = ['one', 'two', 'three'] %}

{% for t in test %}
  {{ t }}
{% endfor %}
</code></pre>

<p>Output:</p>

<p><a href="https://i.sstatic.net/kIIWD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/kIIWD.png" alt="enter image description here"></a></p>

<p>After some trial and error, I figured out that content without any html markup will be wrapped with 'pre' tags by default. Is there an option to stop this behaviour? Maybe a general config option I can disable? </p>

<templating><craft3><forloop>
How to disable loops from automatically wrapping non-marked up content?
# How to disable loops from automatically wrapping non-marked up content?

(Asked by: username_0 on 2017-12-19)

So I've got a completely clean install of Craft 3: RC 2. I've installed Redactor, and nothing else. 
In the templates/index.twig file; this is all I have: 
{% set test = ['one', 'two', 'three'] %}

{% for t in test %}
  {{ t }}
{% endfor %}

Output:

After some trial and error, I figured out that content without any html markup will be wrapped with 'pre' tags by default. Is there an option to stop this behaviour? Maybe a general config option I can disable?

**Tags:** templating, craft3, forloop

---

## 2 answers

### Answer by username_1 on 2017-12-19. Score: 1 | Accepted answer

Pretty sure that's just your browser's console trying to tidy things up when you inspect.

If you View Page Source, I'd guess it wouldn't be there.

I also just tested this with your example code on a fresh Craft 3 install on the latest Chrome and Firefox on Windows and the latest Safari on OSX and was not able to reproduce your picture.


---

### Answer by username_0 on 2017-12-19. Score: 1

Thanks for taking the time to replicate this Brad.

You are quite right. This has nothing to do with Craft 3. **Turns out the [json-viewer](https://github.com/tulios/json-viewer) Chrome extension I have installed was adjusting the markup! Uninstalling it did the trick.**

I've never seen anything do that before. Should I be remove this question from StackExchange?

Thanks again.


---

