From b98a33bb8136c2de6b570491ad82f529696157f1 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 25 Feb 2010 14:24:13 +0000 Subject: autoload description blocks --- (limited to 'tablock.py') 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)) -- cgit v0.9.1