def handle_starttag(self, tag, attrs):
if (tag in self.newline_before_elements):<EOL><INDENT>self.text += '<STR_LIT:\n>'<EOL><DEDENT>if (tag in self.stroke_before_elements and not<EOL>self.text.endswith(self.stroke_text)):<EOL><INDENT>self.text += self.stroke_text<EOL><DEDENT>if tag == '<STR_LIT:a>':<EOL><INDENT>for attr in attrs:<EOL><INDENT>if attr[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>self.links.append((len(self.links) + <NUM_LIT:1>, attr[<NUM_LIT:1>]))<EOL><DEDENT><DEDENT><DEDENT>
Handles every start tag like e.g. <p>.