Issue 107 in webreformatter: Empty divs transformed into divs containing the next block

1 view
Skip to first unread message

webrefo...@googlecode.com

unread,
Nov 17, 2011, 5:58:19 AM11/17/11
to webreform...@googlegroups.com
Status: Accepted
Owner: slauri...@gmail.com
Labels: Type-Defect Priority-Medium

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>

}}}

webrefo...@googlecode.com

unread,
Nov 17, 2011, 12:20:08 PM11/17/11
to webreform...@googlegroups.com

Comment #2 on issue 107 by slauri...@gmail.com: Empty divs transformed into

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).


webrefo...@googlecode.com

unread,
Nov 17, 2011, 11:46:56 AM11/17/11
to webreform...@googlegroups.com

Comment #1 on issue 107 by slauri...@gmail.com: Empty divs transformed into

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>

Reply all
Reply to author
Forward
0 new messages