Add a subscript ("sub" tag)
(self, text=None)
| 2297 | return self |
| 2298 | |
| 2299 | def add_subscript(self, text=None): |
| 2300 | """Add a subscript ("sub" tag)""" |
| 2301 | child = self.create_element("sub") |
| 2302 | if type(text) is str: |
| 2303 | child.append_child(self.create_text_node(text)) |
| 2304 | prev = self.span_bottom() |
| 2305 | if prev is None: |
| 2306 | prev = self |
| 2307 | prev.append_child(child) |
| 2308 | return self |
| 2309 | |
| 2310 | def add_superscript(self, text=None): |
| 2311 | """Add a superscript ("sup" tag)""" |
nothing calls this directly
no test coverage detected