+ if hasattr(t, 'design'):
+ import textwrap
+ line_length = t.design[0].x
+ wrapper = textwrap.TextWrapper(drop_whitespace=False,
+ width=line_length)
+ lines = wrapper.wrap(t.design[1])
+ if t.type_ == 'Sign':
+ info_to_cache += '-' * (line_length + 4) + '\n'
+ for line in lines:
+ info_to_cache += '| %s |\n' % line
+ if t.type_ == 'Sign':
+ info_to_cache += '-' * (line_length + 4) + '\n'