Rename variable
This commit is contained in:
@@ -166,7 +166,7 @@ class Tokenizer(ABC):
|
|||||||
self._hFormatter = HeadingFormatter(self._project)
|
self._hFormatter = HeadingFormatter(self._project)
|
||||||
self._noSep = True # Flag to indicate that we don't want a scene separator
|
self._noSep = True # Flag to indicate that we don't want a scene separator
|
||||||
self._noIndent = False # Flag to disable text indent on next paragraph
|
self._noIndent = False # Flag to disable text indent on next paragraph
|
||||||
self._forcePage = False # Force a page break on next token
|
self._breakNext = False # Add a page break on next token
|
||||||
|
|
||||||
# This File
|
# This File
|
||||||
self._isNovel = False # Document is a novel document
|
self._isNovel = False # Document is a novel document
|
||||||
@@ -447,7 +447,7 @@ class Tokenizer(ABC):
|
|||||||
|
|
||||||
def setBreakNext(self) -> None:
|
def setBreakNext(self) -> None:
|
||||||
"""Set a page break for next block."""
|
"""Set a page break for next block."""
|
||||||
self._forcePage = True
|
self._breakNext = True
|
||||||
return
|
return
|
||||||
|
|
||||||
def addRootHeading(self, tHandle: str) -> None:
|
def addRootHeading(self, tHandle: str) -> None:
|
||||||
@@ -551,9 +551,9 @@ class Tokenizer(ABC):
|
|||||||
rawText.append("\n")
|
rawText.append("\n")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self._forcePage:
|
if self._breakNext:
|
||||||
tStyle = BlockFmt.PBB
|
tStyle = BlockFmt.PBB
|
||||||
self._forcePage = False
|
self._breakNext = False
|
||||||
else:
|
else:
|
||||||
tStyle = BlockFmt.NONE
|
tStyle = BlockFmt.NONE
|
||||||
|
|
||||||
@@ -568,7 +568,7 @@ class Tokenizer(ABC):
|
|||||||
# therefore proceed to check other formats.
|
# therefore proceed to check other formats.
|
||||||
|
|
||||||
if sLine in ("[newpage]", "[new page]"):
|
if sLine in ("[newpage]", "[new page]"):
|
||||||
self._forcePage = True
|
self._breakNext = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
elif sLine == "[vspace]":
|
elif sLine == "[vspace]":
|
||||||
|
|||||||
Reference in New Issue
Block a user