MCPcopy Create free account
hub / github.com/commonmark/cmark / handle_endtag

Method handle_endtag

test/normalize.py:44–51  ·  view source on GitHub ↗
(self, tag)

Source from the content-addressed store, hash-verified

42 self.output += data
43 self.last = "data"
44 def handle_endtag(self, tag):
45 if tag == "pre":
46 self.in_pre = False
47 elif self.is_block_tag(tag):
48 self.output = self.output.rstrip()
49 self.output += "</" + tag + ">"
50 self.last_tag = tag
51 self.last = "endtag"
52 def handle_starttag(self, tag, attrs):
53 if tag == "pre":
54 self.in_pre = True

Callers

nothing calls this directly

Calls 1

is_block_tagMethod · 0.95

Tested by

no test coverage detected