def add_text(self, value):
if isinstance(value, (list, tuple)):<EOL><INDENT>self.pieces.extend(value)<EOL><DEDENT>else:<EOL><INDENT>self.pieces.append(value)<EOL><DEDENT>
Adds text corresponding to `value` into `self.pieces`.