changeset 257:f8dad7956a30

text_x_arnica:simplified loop for extending missing table cells
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 10 Sep 2008 11:43:06 +0200
parents 4c017ac39d06
children f84e0a37835f
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Sep 10 11:14:57 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Wed Sep 10 11:43:06 2008 +0200
@@ -584,9 +584,7 @@
                     result = []
                 col_count += 1
             if result:
-                # ToDo use a longer var
-                for i in range(cols - col_count + 1):
-                    result.append('')
+                result += [""] * (cols - col_count + 1)
 
         # adds the last row if it is not filled up
         if result: