Remove references and checks for lxml

This commit is contained in:
Veronica Berglyd Olsen
2023-05-29 21:52:43 +02:00
parent 1d90d6d385
commit af923d6050
11 changed files with 6 additions and 30 deletions
+1 -3
View File
@@ -597,7 +597,7 @@ class ToOdt(Tokenizer):
xElem = ET.SubElement(self._xText, _mkTag("text", pTag), attrib=tAttr)
# It's important to set the initial text field to empty, otherwise
# lxml will add a line break if the first subelement is a span.
# xmlIndent will add a line break if the first subelement is a span.
xElem.text = ""
if not theText:
@@ -1315,8 +1315,6 @@ class XMLParagraph:
"""This is a helper class to manage the text content of a single
XML element using mixed content tags.
See: https://lxml.de/tutorial.html#the-element-class
Rules:
* The root tag can only have text set, never tail.
* Any span must be under root, and the text in the span is set in