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

Method h5_

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:937–949  ·  view source on GitHub ↗

The `h1_` to `h6_` tags define headers, combining the opening and closing tag where the s attribute is the block content. >>> b = HtmlBuilder() >>> b.compact = True >>> b.h5_('Hello world') >>> b.getHtml() ' Hello world '

(self, s, **args)

Source from the content-addressed store, hash-verified

935 self._closeTag_noWhitespace('h5')
936
937 def h5_(self, s, **args):
938 """The `h1_` to `h6_` tags define headers, combining the opening and
939 closing tag where the s attribute is the block content.
940
941 >>> b = HtmlBuilder()
942 >>> b.compact = True
943 >>> b.h5_('Hello world')
944 >>> b.getHtml()
945 '<h5>Hello world</h5>'
946 """
947 self.h5(**args)
948 self.addHtml(s)
949 self._h5()
950
951 def h6(self, **args):
952 """The `h1` to `h6` tags define headers. h1 defines the largest header. h6

Callers

nothing calls this directly

Calls 3

h5Method · 0.95
addHtmlMethod · 0.95
_h5Method · 0.95

Tested by

no test coverage detected