Closed Sazu-bit closed 1 year ago
I can't quite figure out how to delete a paragraph with this.
I have empty lines that need removing. With odfpy, I could use "element.parentNode.removeChild(element" but with this I'm not so sure.
Never mind...
for selectedParagraph in body.get_paragraphs(): paragraphContent = selectedParagraph.text_recursive if paragraphContent == "": Paragraph.delete(selectedParagraph)
I can't quite figure out how to delete a paragraph with this.
I have empty lines that need removing. With odfpy, I could use "element.parentNode.removeChild(element" but with this I'm not so sure.