Fix ToOdt test coverage

This commit is contained in:
Veronica Berglyd Olsen
2023-10-20 22:55:59 +02:00
parent dc50f4bb3b
commit d51bfec090
3 changed files with 394 additions and 300 deletions
+2 -1
View File
@@ -29,6 +29,7 @@ from __future__ import annotations
import logging
import xml.etree.ElementTree as ET
from typing import Sequence
from hashlib import sha256
from pathlib import Path
from zipfile import ZipFile
@@ -578,7 +579,7 @@ class ToOdt(Tokenizer):
def _addTextPar(
self, styleName: str, oStyle: ODTParagraphStyle, tText: str,
tFmt: list[tuple[int, int]] = [], isHead: bool = False, oLevel: str | None = None
tFmt: Sequence[tuple[int, int]] = [], isHead: bool = False, oLevel: str | None = None
) -> None:
"""Add a text paragraph to the text XML element."""
tAttr = {}