[dw-free] Cleanup tables on site-styled /icons
[commit: http://hg.dwscoalition.org/dw-free/rev/6a2461e3d553]
http://bugs.dwscoalition.org/show_bug.cgi?id=4312
Add a missing closing div when we have an odd number of icons. Also tweak
whitespace.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=4312
Add a missing closing div when we have an odd number of icons. Also tweak
whitespace.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/siteviews/layout.s2
-------------------------------------------------------------------------------- diff -r caf5573c5cc2 -r 6a2461e3d553 bin/upgrading/s2layers/siteviews/layout.s2 --- a/bin/upgrading/s2layers/siteviews/layout.s2 Wed Feb 22 17:49:32 2012 +0800 +++ b/bin/upgrading/s2layers/siteviews/layout.s2 Wed Feb 22 18:10:25 2012 +0800 @@ -133,8 +133,8 @@ if ( (++$sort_ct) < size $.sort_keyseq) { print $*text_default_separator; } } - """<div class="icon-container">"""; - foreach var Icon i ($.icons) { + """<div class="icon-container">"""; + foreach var Icon i ($.icons) { $piccount++; if ($piccount % 2 == 1) { @@ -151,6 +151,7 @@ } if ($piccount) { if ($piccount % 2 == 1) { + """</div>"""; } } else { --------------------------------------------------------------------------------