fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-02-22 10:10 am

[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 [personal profile] fu.

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 {
--------------------------------------------------------------------------------