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

Method h6_

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:974–986  ·  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.h6_('Hello world') >>> b.getHtml() ' Hello world '

(self, s, **args)

Source from the content-addressed store, hash-verified

972 self._closeTag_noWhitespace('h6')
973
974 def h6_(self, s, **args):
975 """The `h1_` to `h6_` tags define headers, combining the opening and
976 closing tag where the s attribute is the block content.
977
978 >>> b = HtmlBuilder()
979 >>> b.compact = True
980 >>> b.h6_('Hello world')
981 >>> b.getHtml()
982 '<h6>Hello world</h6>'
983 """
984 self.h6(**args)
985 self.addHtml(s)
986 self._h6()
987
988 def figure(self, **args):
989 """The figure method (HTML5) is used for annotating illustrations,

Callers

nothing calls this directly

Calls 3

h6Method · 0.95
addHtmlMethod · 0.95
_h6Method · 0.95

Tested by

no test coverage detected