def content(self, attributes: List[str]):
formats = []<EOL>attrs = []<EOL>for attrib_format, attrib in zip(self.attrib_formats, self.attributes):<EOL><INDENT>if attrib not in attributes:<EOL><INDENT>formats.append(attrib_format.pad_str())<EOL>continue<EOL><DEDENT>formats.append(attrib_format.format)<EOL>attrs.append(attrib)<EOL>attributes.remove(attrib)<EOL><DEDENT>if not attrs:<EOL><INDENT>return None<EOL><DEDENT>return (<EOL>self.buffer,<EOL>"<STR_LIT>".format("<STR_LIT:U+0020>".join(formats), '<STR_LIT>' if self.per_instance else '<STR_LIT>'),<EOL>*attrs<EOL>)<EOL>
Build content tuple for the buffer