title: Why does HAML think I have content on the line and nested? (I don't)
body: <p>My HAML reads:</p>
  
  <pre><code>%table.screenshots
    %thead
      %trow
        %td{:colspan =&gt; 12} Screenshots for #{element.name}
    %tbody
      - screenshots.each do |set|
        %tr
          - set[1].each do |shot|
            - if shot == :blank_cell
              %td{:colspan =&gt; set[0]}.twelfth &amp;nbsp;
            - else
              %td{:colspan =&gt; set[0]}.twelfth
                = image_tag(shot[1]) # &lt;= ERROR APPEARS HERE
                - if @redacted
                  %h1.blur
                    %span Image blurred in
                    %br
                    %span demo report only
                %p #{shot[0]}
  </code></pre>
  
  <p>There are no invisible spaces or tabs after <code>.twelfth</code>.</p>
  
  <p>Why, then, do I get this error?</p>
  
  <pre><code>Illegal nesting: content can't be both given on the same line as %td and nested within it.
  </code></pre>
  
  <p>BTW, I get the same exception when I run:</p>
  
  <pre><code>haml --debug print.html.haml
  </code></pre>