Correct misspelled variable

This commit is contained in:
Veronica Berglyd Olsen
2024-10-23 17:36:12 +02:00
parent b01c91c0a3
commit 36d8547f78
+5 -5
View File
@@ -140,7 +140,7 @@ class DocXParStyle(NamedTuple):
after: float | None = None after: float | None = None
line: float | None = None line: float | None = None
indentFirst: float | None = None indentFirst: float | None = None
indentHangning: float | None = None hanging: float | None = None
align: str | None = None align: str | None = None
default: bool = False default: bool = False
level: int | None = None level: int | None = None
@@ -623,7 +623,7 @@ class ToDocX(Tokenizer):
before=0.0, before=0.0,
after=fnSz * self._marginFoot[1], after=fnSz * self._marginFoot[1],
line=fnSz * self._lineHeight, line=fnSz * self._lineHeight,
indentHangning=fnSz * self._marginFoot[0], hanging=fnSz * self._marginFoot[0],
)) ))
# Add to Cache # Add to Cache
@@ -744,10 +744,10 @@ class ToDocX(Tokenizer):
_wTag("after"): str(int(20.0 * firstFloat(style.after))), _wTag("after"): str(int(20.0 * firstFloat(style.after))),
_wTag("line"): str(int(20.0 * firstFloat(style.line, size))), _wTag("line"): str(int(20.0 * firstFloat(style.line, size))),
}) })
if style.indentHangning is not None: if style.hanging is not None:
xmlSubElem(pPr, _wTag("ind"), attrib={ xmlSubElem(pPr, _wTag("ind"), attrib={
_wTag("left"): str(int(20.0 * style.indentHangning)), _wTag("left"): str(int(20.0 * style.hanging)),
_wTag("hanging"): str(int(20.0 * style.indentHangning)), _wTag("hanging"): str(int(20.0 * style.hanging)),
}) })
if style.align: if style.align:
xmlSubElem(pPr, _wTag("jc"), attrib={_wTag("val"): style.align}) xmlSubElem(pPr, _wTag("jc"), attrib={_wTag("val"): style.align})