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

Method h4_

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

(self, s, **args)

Source from the content-addressed store, hash-verified

898 self.newLine() # Optional newline is self.compact is False.
899
900 def h4_(self, s, **args):
901 """The `h1_` to `h6_` tags define headers, combining the opening and
902 closing tag where the s attribute is the block content.
903
904 >>> b = HtmlBuilder()
905 >>> b.compact = True
906 >>> b.h4_('Hello world')
907 >>> b.getHtml()
908 '<h4>Hello world</h4>'
909 """
910 self.h4(**args)
911 self.addHtml(s)
912 self._h4()
913
914 def h5(self, **args):
915 """The `h1` to `h6` tags define headers. h1 defines the largest header. h6

Callers

nothing calls this directly

Calls 3

h4Method · 0.95
addHtmlMethod · 0.95
_h4Method · 0.95

Tested by

no test coverage detected