Simplify JSON and raw text writing
This commit is contained in:
@@ -543,7 +543,7 @@ class ToOdt(Tokenizer):
|
||||
self._xText.insert(0, xFields)
|
||||
return
|
||||
|
||||
def saveDocument(self, path: str | Path) -> None:
|
||||
def saveDocument(self, path: Path) -> None:
|
||||
"""Save the data to an .fodt or .odt file."""
|
||||
if self._isFlat:
|
||||
with open(path, mode="wb") as fObj:
|
||||
|
||||
Reference in New Issue
Block a user