title: Django: If I start a table, and then have a {% block %}{% endblock %} and close the table after, does it break the table?
body: <p>I am making an html email template, and the header and footer for various email templates are on a single page that is included on each email. They are set up in tables, and the header and footer are contained in a single table. Because I am providing the body of the email in a separate file, it has to be broken up with a block.</p>
  
  <p>Apple mail renders the tfoot wrong, as if the footer is separate from the rest of the table. Is this because it is broken up by the block tags? How can I make it work, if so?</p>
  
  <p>This is the barebones setup for reference.</p>
  
  <pre><code>&lt;body&gt;
    &lt;table&gt;
      &lt;th&gt;
        ----
      &lt;/th&gt;
  
      {% block body %}
      {% endblock %}
  
      &lt;tfoot&gt;
        &lt;tr&gt;
         &lt;td&gt;
          -----
         &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tfoot&gt;
    &lt;/table&gt;
  &lt;/body&gt;
  
  
  </code></pre>