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

Method newLine

Lib/pagebot/contexts/htmlcontext/xmlbuilder.py:72–74  ·  view source on GitHub ↗
(self, count=1)

Source from the content-addressed store, hash-verified

70 self._tabLevel = max(0, self._tabLevel - 1)
71
72 def newLine(self, count=1):
73 if not self.compact:
74 self.write(self._newLine * count)
75
76 def getandwrite_attributes(self, tagname, args):
77 attributes = self.GLOBAL_ATTRIBUTES.union(getattr(self, tagname.upper() + '_ATTRIBUTES', set([])))

Callers 11

write_tagMethod · 0.95
_closeTagMethod · 0.95
_popTagMethod · 0.95
linkMethod · 0.80
_h1Method · 0.80
_h2Method · 0.80
_h3Method · 0.80
_h4Method · 0.80
_scriptMethod · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected