From 36d8547f783f758c657873476f7d02608c7415ac Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:36:12 +0200 Subject: [PATCH] Correct misspelled variable --- novelwriter/formats/todocx.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/novelwriter/formats/todocx.py b/novelwriter/formats/todocx.py index f02e9251..7c56e29f 100644 --- a/novelwriter/formats/todocx.py +++ b/novelwriter/formats/todocx.py @@ -140,7 +140,7 @@ class DocXParStyle(NamedTuple): after: float | None = None line: float | None = None indentFirst: float | None = None - indentHangning: float | None = None + hanging: float | None = None align: str | None = None default: bool = False level: int | None = None @@ -623,7 +623,7 @@ class ToDocX(Tokenizer): before=0.0, after=fnSz * self._marginFoot[1], line=fnSz * self._lineHeight, - indentHangning=fnSz * self._marginFoot[0], + hanging=fnSz * self._marginFoot[0], )) # Add to Cache @@ -744,10 +744,10 @@ class ToDocX(Tokenizer): _wTag("after"): str(int(20.0 * firstFloat(style.after))), _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={ - _wTag("left"): str(int(20.0 * style.indentHangning)), - _wTag("hanging"): str(int(20.0 * style.indentHangning)), + _wTag("left"): str(int(20.0 * style.hanging)), + _wTag("hanging"): str(int(20.0 * style.hanging)), }) if style.align: xmlSubElem(pPr, _wTag("jc"), attrib={_wTag("val"): style.align})