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

Method h3_

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

(self, s, **args)

Source from the content-addressed store, hash-verified

859 self.newLine() # Optional newline is self.compact is False.
860
861 def h3_(self, s, **args):
862 """The `h1_` to `h6_` tags define headers, combining the opening and
863 closing tag where the s attribute is the block content.
864
865 >>> b = HtmlBuilder()
866 >>> b.compact = True
867 >>> b.h3_('Hello world')
868 >>> b.getHtml()
869 '<h3>Hello world</h3>'
870 """
871 self.h3(**args)
872 self.addHtml(s)
873 self._h3()
874
875 def h4(self, **args):
876 """The `h1` to `h6` tags define headers. h1 defines the largest header. h6

Callers

nothing calls this directly

Calls 3

h3Method · 0.95
addHtmlMethod · 0.95
_h3Method · 0.95

Tested by

no test coverage detected