Add a "code" tag
(self, text=None)
| 2176 | return self |
| 2177 | |
| 2178 | def add_code(self, text=None): |
| 2179 | """Add a "code" tag""" |
| 2180 | child = self.create_element("code") |
| 2181 | if type(text) is str: |
| 2182 | child.append_child(self.create_text_node(text)) |
| 2183 | prev = self.span_bottom() |
| 2184 | if prev is None: |
| 2185 | prev = self |
| 2186 | prev.append_child(child) |
| 2187 | return self |
| 2188 | |
| 2189 | def add_codeblock(self): |
| 2190 | """Add monospaced lines ("pre" node)""" |
nothing calls this directly
no test coverage detected