Multiline lint error

modifica

A DIV error is generated by each template:listing that has a multiline description if each row is divided by the wiki-syntax ":" (i.e. colon) instead of "BR" HTML tag.

  • Div1 that generates error. First row
    Second row.
  • Div1 with NO error. First row
    Second row.

The ":" char, generate a description list (DL HTML tag) that for some reason is placed outside the DIV HTML tag.

This is the comparison between the two rendered codes:

<ul>
<li>
<div class="vcard"><span id="Div1_that_generates_error" class="fn org listing-name"><b>Div1 that generates error</b></span>. First row</div>
</li>
</ul><dl>
<dd>Second row.<span class="listing-metadata"><span class="listing-metadata-items"> <span class="vcard-edit-button noprint"><a href="javascript:" class="listingeditor-edit">modifica</a></span></span></span></dd>
</dl>
<ul>
<li>
<div class="vcard"><span id="Div1_with_NO_error" class="fn org listing-name"><b>Div1 with NO error</b></span>. First row<br>
Second row.<span class="listing-metadata"><span class="listing-metadata-items"> <span class="vcard-edit-button noprint"><a href="javascript:" class="listingeditor-edit">modifica</a></span></span></span></div>
</li>
</ul>

Wrong nesting

modifica
  • Div wrongly nested. First row
    Second row.

If the second row would be nested correctly inside the LI tag, there will be no need for any workaroung to fix the layout that would create lint error.