Return a newly added ` ` element containing `text`.
(self, text: str)
| 38 | tab = ZeroOrMore("w:tab") |
| 39 | |
| 40 | def add_t(self, text: str) -> CT_Text: |
| 41 | """Return a newly added `<w:t>` element containing `text`.""" |
| 42 | t = self._add_t(text=text) |
| 43 | if len(text.strip()) < len(text): |
| 44 | t.set(qn("xml:space"), "preserve") |
| 45 | return t |
| 46 | |
| 47 | def add_drawing(self, inline_or_anchor: CT_Inline | CT_Anchor) -> CT_Drawing: |
| 48 | """Return newly appended `CT_Drawing` (`w:drawing`) child element. |