Reworked the title formatting functionality. All keywords can be used in all headings, and also added scene numbers.

This commit is contained in:
Veronica K. B. Olsen
2020-05-11 19:00:01 +02:00
parent 4dead91af2
commit 7c1f3144bd
4 changed files with 82 additions and 64 deletions
+6 -6
View File
@@ -69,7 +69,7 @@ class GuiBuildNovel(QDialog):
self.htmlText = ""
self.setWindowTitle("Build Project")
self.setWindowTitle("Build Novel Project")
self.setMinimumWidth(800)
self.setMinimumHeight(800)
@@ -315,11 +315,11 @@ class GuiBuildNovel(QDialog):
doBodyText = True
if outlineMode:
fmtTitle = "%title%"
fmtChapter = "Chapter: %title%"
fmtUnnumbered = "Chapter: %title%"
fmtScene = "Scene: %title%"
fmtSection = "Section: %title%"
fmtTitle = r"%title%"
fmtChapter = r"Chapter %chnum%: %title%"
fmtUnnumbered = r"%title%"
fmtScene = r"Scene %chnum%.%scnum%: %title%"
fmtSection = r"Section: %title%"
doBodyText = False
incSynopsis = True
novelFiles = True