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

Function clone_para

utils/src/apis.py:187–192  ·  view source on GitHub ↗

Clone a paragraph in a shape.

(paragraph_id: int, shape: BaseShape)

Source from the content-addressed store, hash-verified

185
186
187def clone_para(paragraph_id: int, shape: BaseShape):
188 """
189 Clone a paragraph in a shape.
190 """
191 para = shape.text_frame.paragraphs[paragraph_id]
192 shape.text_frame.paragraphs[-1]._element.addnext(parse_xml(para._element.xml))
193
194
195def del_para(paragraph_id: int, shape: BaseShape):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected