From 44a80bc7c529e5c65316ac5f1c49e87e7149ab0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Tue, 17 Aug 2010 10:58:32 +0000
Subject: [PATCH] if no subblock, return nothing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37864 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/DiffUtils.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5Type/DiffUtils.py b/product/ERP5Type/DiffUtils.py
index 11037a8cf8..c1d69b74da 100644
--- a/product/ERP5Type/DiffUtils.py
+++ b/product/ERP5Type/DiffUtils.py
@@ -103,6 +103,9 @@ class DiffFile:
     # Adding header of the table
     if self.binary:
       return '<b>Folder or binary file or just no changes!</b><br/><br/><br/>'
+
+    if not len(self.children):
+      return ''
     
     html_list = []
     html_list.append('''
-- 
2.30.9