title: Spaceless tag inside script block
body: <p>I'm trying to inline this so the rendered page isn't 100,000 lines long.
  It seems the spaceless tag does nothing here.</p>
  
  <p>Input:</p>
  
  <pre><code>{% for log in logs -%}
      {% spaceless %}
          {
              id: {{ log.id }},
              description: '{{ log.description }}'
          },
      {% endspaceless %}
  {% endfor -%}
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>{id:17186,description:'Test Log'},
  {id:17187,description:'Test Log 2'},
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>{
      id: 17186,
      description: 'Test Log'
  },
  {
      id: 17187,
      description: 'Test Log 2'
  },
  </code></pre>