Add a superscript ("sup" tag)
(self, text=None)
| 2308 | return self |
| 2309 | |
| 2310 | def add_superscript(self, text=None): |
| 2311 | """Add a superscript ("sup" tag)""" |
| 2312 | child = self.create_element("sup") |
| 2313 | if type(text) is str: |
| 2314 | child.append_child(self.create_text_node(text)) |
| 2315 | prev = self.span_bottom() |
| 2316 | if prev is None: |
| 2317 | prev = self |
| 2318 | prev.append_child(child) |
| 2319 | return self |
| 2320 | |
| 2321 | def add_text(self, text): |
| 2322 | """Add text. Line breaks are honored.""" |
nothing calls this directly
no test coverage detected