Utente:Andyrom75/Test2

Da Wikivoyage.
Jump to navigation Jump to search

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.

Note[modifica]

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>