Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-19T23:11:49.927Z
Answers.LastActivityDate: 2017-12-19T23:11:49.927Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-19T23:20:27.723Z
Answers.LastActivityDate: 2017-12-19T23:20:27.723Z
Answers.UserDisplayName: Mark Notton
Body: <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>
  
Tags: <templating><craft3><forloop>
Title: How to disable loops from automatically wrapping non-marked up content?
ThreadText: # 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:
  
  [![enter image description here](https://i.sstatic.net/kIIWD.png)](https://i.sstatic.net/kIIWD.png)
  
  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 username_1.
  
  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.
  
  
  ---
  
  