New issue 107 by slauri...@gmail.com: Empty divs transformed into divs
containing the next block
http://code.google.com/p/webreformatter/issues/detail?id=107
Input block example:
{{{
<div class="threecol"></div>
<div class="sixcol" style="font-size:110%">
<div class="threecol last"></div>
}}}
Output block:
{{{
<div class="threecol">
<div class="sixcol" style="font-size:110%">
<div class="threecol last"></div>
</div>
}}}
While the following is expected (when no cleaning):
{{{
<div class="threecol"></div>
<div class="sixcol" style="font-size:110%">
<div class="threecol last"></div>
}}}
And the output was wrong as well. It is actually the following:
<div class="threecol"/>
<div class="sixcol" style="font-size:110%">
<p>
text
</p>
</div>
<div class="threecol last"/>
The parameter "useEmptyElementTags" has to be set to false so that
HtmlCleaner won't use the compact notation for tags with an empty body (see
http://htmlcleaner.sourceforge.net/parameters.php).
The input submitted was wrong. It is actually the following:
<div class="threecol"></div>
<div class="sixcol" style="font-size:110%">
<p>
text
</p>
</div>