title: Error with displaying/saving an NS advanced pdf/html template associated with a line that has no place in the code
body: <p>When I finished writing the code to an NS advanced pdf template, I started to see an error that is not reflected in the code. Details about the error in 13 line: "Error on line 13, column 142 in template.
  Detail...<code>&lt;tr&gt; kid is &lt;p&gt; not &lt;td&gt;: ignoring</code>.</p>
  
  <p>I tried to remove the code from the given line in which it occurs, but it did not give any effect, even if there is a comment to the whole if or the line is shifted, the given error pops up.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;&lt;!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd"&gt;
  &lt;pdf&gt;
  &lt;head&gt;
      &lt;link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" /&gt;
      &lt;#if .locale == "zh_CN"&gt;
          &lt;link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" /&gt;
      &lt;#elseif .locale == "zh_TW"&gt;
          &lt;link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" /&gt;
      &lt;#elseif .locale == "ja_JP"&gt;
          &lt;link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" /&gt;
      &lt;#elseif .locale == "ko_KR"&gt;
          &lt;link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" /&gt;
      &lt;#elseif .locale == "th_TH"&gt; &lt;!-- in this line error appears --&gt;
          &lt;link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" /&gt;
      &lt;/#if&gt;
      &lt;style type="text/css"&gt;table { font-size: 9pt; table-layout: fixed; width: 100%; }
  th { font-weight: bold; font-size: 8pt; vertical-align: middle; padding: 5px 6px 3px; background-color: #e3e3e3; color: #333333; padding-bottom: 10px; padding-top: 10px; }
  td { padding: 4px 6px; }
  b { font-weight: bold; color: #333333; }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/pdf&gt;
  </code></pre>
  
  <p>How can I remove this error, or what could i do to solve my problem?</p>