From 566ae7a174a4694912edde915ab231896dbdadab Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 1 Apr 2009 14:33:10 +0000
Subject: [PATCH] render tbody only when its content is not empty otherwise it
 is not a valid XHTML.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26240 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_web_widget_library/ListBox_asWebStyleHTML.xml          | 2 +-
 bt5/erp5_web/bt/revision                                        | 2 +-
 .../portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml  | 2 +-
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision             | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/ListBox_asWebStyleHTML.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/ListBox_asWebStyleHTML.xml
index 84b5f2173f..f616627cb4 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/ListBox_asWebStyleHTML.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/ListBox_asWebStyleHTML.xml
@@ -203,7 +203,7 @@
               </tr>\n
             </tfoot>\n
 \n
-            <tbody>\n
+            <tbody tal:condition="line_list">\n
               <tr tal:repeat="line line_list" tal:define="checked_uid_set here/getCheckedUidSet">\n
                 <tal:block tal:repeat="value line/render">\n
                   <td tal:define="html               python: value[0];\n
diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision
index f4edf9d173..26c159cea5 100644
--- a/bt5/erp5_web/bt/revision
+++ b/bt5/erp5_web/bt/revision
@@ -1 +1 @@
-770
\ No newline at end of file
+771
\ No newline at end of file
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
index 3a10308657..5abf588b8c 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
@@ -406,7 +406,7 @@
               </tr>\n
             </tfoot>\n
 \n
-            <tbody>\n
+            <tbody tal:condition="line_list">\n
               <tr tal:repeat="line line_list" tal:define="checked_uid_set here/getCheckedUidSet">\n
                 <td tal:condition="python: show_select_column and not is_gadget_mode"\n
                     class="DataA" style="width: 50px; text-align: center; vertical-align: middle"\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 8e6862383d..633a077699 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-684
\ No newline at end of file
+685
\ No newline at end of file
-- 
2.30.9