diff --git a/product/ERP5OOo/OOoUtils.py b/product/ERP5OOo/OOoUtils.py index c928cb1dd96c9fd81994ee8f2b0dbaa73c59b9d1..f8770bf1f2610993f41d2c8deab7199281c27538 100644 --- a/product/ERP5OOo/OOoUtils.py +++ b/product/ERP5OOo/OOoUtils.py @@ -469,6 +469,10 @@ class OOoParser(Implicit): # 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)