Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tablock.py
diff options
context:
space:
mode:
Diffstat (limited to 'tablock.py')
-rw-r--r--tablock.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tablock.py b/tablock.py
index d01bb6d..3f4478b 100644
--- a/tablock.py
+++ b/tablock.py
@@ -237,7 +237,8 @@ class Block:
self._set_margins()
self._set_label_attributes()
- if self.name in CONTENT_BLOCKS and len(self.values) > 0:
+ if (self.name == 'number' or self.name == 'string') and\
+ len(self.values) > 0:
for i, v in enumerate(self.values):
if v is not None:
self._set_labels(i, str(v))