[Erp5-report] r20803 - /erp5/trunk/products/ERP5OOo/OOoUtils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 24 17:44:16 CEST 2008
Author: jerome
Date: Thu Apr 24 17:44:15 2008
New Revision: 20803
URL: http://svn.erp5.org?rev=20803&view=rev
Log:
When the row is reapeated using table:number-rows-repeated and no_empty_lines
parameter is not False, break the loop if we don't the first row is empty.
Modified:
erp5/trunk/products/ERP5OOo/OOoUtils.py
Modified: erp5/trunk/products/ERP5OOo/OOoUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/OOoUtils.py?rev=20803&r1=20802&r2=20803&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/OOoUtils.py (original)
+++ erp5/trunk/products/ERP5OOo/OOoUtils.py Thu Apr 24 17:44:15 2008
@@ -469,6 +469,10 @@
# Add the line to the table
if table_line != None:
table.append(table_line)
+ else:
+ # If the line is empty here, the repeated line will also be empty, so
+ # no need to loop.
+ break
# Reduce the table to the minimum
new_table = self._getReducedTable(table)
More information about the Erp5-report
mailing list