MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / add_paragraph

Method add_paragraph

src/__init__.py:2272–2279  ·  view source on GitHub ↗

Add "p" tag

(self)

Source from the content-addressed store, hash-verified

2270 return child
2271
2272 def add_paragraph(self):
2273 """Add "p" tag"""
2274 child = self.create_element("p")
2275 if self.tagname != "p":
2276 self.append_child(child)
2277 else:
2278 self.parent.append_child(child)
2279 return child
2280
2281 def add_span(self):
2282 child = self.create_element("span")

Callers 6

header_storyFunction · 0.80
footer_storyFunction · 0.80
code_printerFunction · 0.80
code-printer.pyFile · 0.80
json-example.pyFile · 0.80
simple-grid.pyFile · 0.80

Calls 2

create_elementMethod · 0.95
append_childMethod · 0.95

Tested by

no test coverage detected