+ if hasattr(t, 'design'):
+ line_length = t.design[0].x
+ lines = []
+ for i in range(t.design[0].y):
+ start = i * line_length
+ end = (i + 1) * line_length
+ lines += [t.design[1][start:end]]
+ if t.type_ == 'Sign':
+ info_to_cache += '-' * (line_length + 4) + '\n'
+ for line in lines:
+ info_to_cache += '| %s |\n' % line
+ info_to_cache += '-' * (line_length + 4) + '\n'
+ else:
+ for line in lines:
+ info_to_cache += '%s\n' % line