Loading generateChangemarks/generateTOC.py +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ def processDocument(args:argparse.Namespace) -> None: backupFile(outDocument) tocDone = False # Add the TOC to the document with open(outDocument, 'w') as f: with open(outDocument, 'w', encoding='utf-8', errors='replace') as f: inToc = False for line in document: # Skip the old TOC when writing Loading Loading
generateChangemarks/generateTOC.py +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ def processDocument(args:argparse.Namespace) -> None: backupFile(outDocument) tocDone = False # Add the TOC to the document with open(outDocument, 'w') as f: with open(outDocument, 'w', encoding='utf-8', errors='replace') as f: inToc = False for line in document: # Skip the old TOC when writing Loading