(self, paragraph: _Paragraph, idx: int)
| 76 | |
| 77 | class Paragraph: |
| 78 | def __init__(self, paragraph: _Paragraph, idx: int): |
| 79 | run = runs_merge(paragraph) |
| 80 | self.idx = idx |
| 81 | self.real_idx = idx |
| 82 | self.bullet = paragraph.bullet |
| 83 | if run is None: |
| 84 | self.idx = -1 |
| 85 | return |
| 86 | self.font = merge_dict( |
| 87 | object_to_dict(paragraph.font), [object_to_dict(run.font)] |
| 88 | ) |
| 89 | self.text = re.sub(r"(_x000B_|\\x0b)", " ", paragraph.text) |
| 90 | |
| 91 | def to_html(self, style_args: StyleArg): |
| 92 | if self.idx == -1: |
nothing calls this directly
no test coverage detected