MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / __init__

Method __init__

utils/src/presentation.py:78–89  ·  view source on GitHub ↗
(self, paragraph: _Paragraph, idx: int)

Source from the content-addressed store, hash-verified

76
77class 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:

Callers

nothing calls this directly

Calls 4

runs_mergeFunction · 0.90
merge_dictFunction · 0.90
object_to_dictFunction · 0.90
subMethod · 0.45

Tested by

no test coverage detected