MCPcopy Create free account
hub / github.com/PageBot/PageBot / _closeTag

Method _closeTag

Lib/pagebot/contexts/htmlcontext/xmlbuilder.py:205–210  ·  view source on GitHub ↗
(self, tag)

Source from the content-addressed store, hash-verified

203 self._tagStack.append(tag)
204
205 def _closeTag(self, tag):
206 self.tabOut()
207 self.tabs()
208 self.write(u'</%s>' % tag)
209 self.newLine() # Optional write newline if not self.compat
210 self._popTag(tag)
211
212 def _closeTag_noWhitespace(self, tag):
213 """Close the tag. Don’t write any white space inside the block. E.g.

Callers 15

_htmlMethod · 0.80
_headMethod · 0.80
_titleMethod · 0.80
_bodyMethod · 0.80
_figureMethod · 0.80
_figcaptionMethod · 0.80
_hgroupMethod · 0.80
_articleMethod · 0.80
_headerMethod · 0.80
_footerMethod · 0.80
_sectionMethod · 0.80
_blockquoteMethod · 0.80

Calls 5

tabOutMethod · 0.95
tabsMethod · 0.95
newLineMethod · 0.95
_popTagMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected