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)
| 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 |