Fix some typos
This commit is contained in:
@@ -349,7 +349,7 @@ class BuildSettings:
|
||||
def buildItemFilter(
|
||||
self, project: NWProject, withRoots: bool = False
|
||||
) -> dict[str, tuple[bool, FilterMode]]:
|
||||
"""Return a dictionary of item handles with filter decissions
|
||||
"""Return a dictionary of item handles with filter decisions
|
||||
applied.
|
||||
"""
|
||||
result: dict[str, tuple[bool, FilterMode]] = {}
|
||||
|
||||
@@ -170,7 +170,7 @@ class NWProjectData:
|
||||
|
||||
@property
|
||||
def autoReplace(self) -> dict[str, str]:
|
||||
"""Return the autoreplace dictionary."""
|
||||
"""Return the auto-replace dictionary."""
|
||||
return self._autoReplace
|
||||
|
||||
@property
|
||||
|
||||
@@ -216,7 +216,7 @@ class Tokenizer(ABC):
|
||||
return
|
||||
|
||||
def setChapterFormat(self, hFormat: str) -> None:
|
||||
"""Set the chapert format pattern."""
|
||||
"""Set the chapter format pattern."""
|
||||
self._fmtChapter = hFormat.strip()
|
||||
return
|
||||
|
||||
@@ -435,8 +435,8 @@ class Tokenizer(ABC):
|
||||
if aLine[0] == "[":
|
||||
# Parse special formatting line
|
||||
# This must be a separate if statement, as it may not
|
||||
# reach a continue statement and must thefore proceed to
|
||||
# check other formats.
|
||||
# reach a continue statement and must therefore proceed
|
||||
# to check other formats.
|
||||
|
||||
if sLine in ("[newpage]", "[new page]"):
|
||||
breakNext = True
|
||||
|
||||
@@ -195,7 +195,7 @@ class ToOdt(Tokenizer):
|
||||
# Setters
|
||||
##
|
||||
|
||||
def setLanguage(self, language: str) -> None:
|
||||
def setLanguage(self, language: str | None) -> None:
|
||||
"""Set language for the document."""
|
||||
if language:
|
||||
langBits = language.split("_")
|
||||
|
||||
Reference in New Issue
Block a user