diff --git a/novelwriter/core/buildsettings.py b/novelwriter/core/buildsettings.py index 4032eb0b..13429e2c 100644 --- a/novelwriter/core/buildsettings.py +++ b/novelwriter/core/buildsettings.py @@ -78,6 +78,7 @@ SETTINGS_TEMPLATE: dict[str, tuple[type, T_BuildValue]] = { "headings.breakScene": (bool, False), "text.includeSynopsis": (bool, False), "text.includeComments": (bool, False), + "text.includeStory": (bool, False), "text.includeKeywords": (bool, False), "text.includeBodyText": (bool, True), "text.ignoredKeywords": (str, ""), @@ -144,6 +145,7 @@ SETTINGS_LABELS = { "text.grpContent": QT_TRANSLATE_NOOP("Builds", "Text Content"), "text.includeSynopsis": QT_TRANSLATE_NOOP("Builds", "Include Synopsis"), "text.includeComments": QT_TRANSLATE_NOOP("Builds", "Include Comments"), + "text.includeStory": QT_TRANSLATE_NOOP("Builds", "Include Story Structure"), "text.includeKeywords": QT_TRANSLATE_NOOP("Builds", "Include Keywords"), "text.includeBodyText": QT_TRANSLATE_NOOP("Builds", "Include Body Text"), "text.ignoredKeywords": QT_TRANSLATE_NOOP("Builds", "Ignore These Keywords"), diff --git a/novelwriter/core/docbuild.py b/novelwriter/core/docbuild.py index 32b6347d..4706e1d1 100644 --- a/novelwriter/core/docbuild.py +++ b/novelwriter/core/docbuild.py @@ -316,6 +316,7 @@ class NWBuildDocument: bldObj.setCommentType(nwComment.PLAIN, self._build.getBool("text.includeComments")) bldObj.setCommentType(nwComment.SYNOPSIS, self._build.getBool("text.includeSynopsis")) bldObj.setCommentType(nwComment.SHORT, self._build.getBool("text.includeSynopsis")) + bldObj.setCommentType(nwComment.STORY, self._build.getBool("text.includeStory")) if isinstance(bldObj, ToHtml): bldObj.setStyles(self._build.getBool("html.addStyles")) diff --git a/novelwriter/tools/manuscript.py b/novelwriter/tools/manuscript.py index b6918b18..8d4aca10 100644 --- a/novelwriter/tools/manuscript.py +++ b/novelwriter/tools/manuscript.py @@ -629,7 +629,7 @@ class _DetailsWidget(QWidget): item.setText(1, "") self.listView.addTopLevelItem(item) for key in [ - "text.includeSynopsis", "text.includeComments", + "text.includeSynopsis", "text.includeComments", "text.includeStory", "text.includeKeywords", "text.includeBodyText", ]: sub = QTreeWidgetItem() diff --git a/novelwriter/tools/manussettings.py b/novelwriter/tools/manussettings.py index cfac8f11..ee802487 100644 --- a/novelwriter/tools/manussettings.py +++ b/novelwriter/tools/manussettings.py @@ -951,11 +951,13 @@ class _FormattingTab(NScrollableForm): self.incBodyText = NSwitch(self, height=iPx) self.incSynopsis = NSwitch(self, height=iPx) self.incComments = NSwitch(self, height=iPx) + self.incStory = NSwitch(self, height=iPx) self.incKeywords = NSwitch(self, height=iPx) self.addRow(self._build.getLabel("text.includeBodyText"), self.incBodyText) self.addRow(self._build.getLabel("text.includeSynopsis"), self.incSynopsis) self.addRow(self._build.getLabel("text.includeComments"), self.incComments) + self.addRow(self._build.getLabel("text.includeStory"), self.incStory) self.addRow(self._build.getLabel("text.includeKeywords"), self.incKeywords) # Ignored Keywords @@ -1264,6 +1266,7 @@ class _FormattingTab(NScrollableForm): self.incBodyText.setChecked(self._build.getBool("text.includeBodyText")) self.incSynopsis.setChecked(self._build.getBool("text.includeSynopsis")) self.incComments.setChecked(self._build.getBool("text.includeComments")) + self.incStory.setChecked(self._build.getBool("text.includeStory")) self.incKeywords.setChecked(self._build.getBool("text.includeKeywords")) self.ignoredKeywords.setText(self._build.getStr("text.ignoredKeywords")) self.addNoteHead.setChecked(self._build.getBool("text.addNoteHeadings")) @@ -1362,6 +1365,7 @@ class _FormattingTab(NScrollableForm): self._build.setValue("text.includeBodyText", self.incBodyText.isChecked()) self._build.setValue("text.includeSynopsis", self.incSynopsis.isChecked()) self._build.setValue("text.includeComments", self.incComments.isChecked()) + self._build.setValue("text.includeStory", self.incStory.isChecked()) self._build.setValue("text.includeKeywords", self.incKeywords.isChecked()) self._build.setValue("text.ignoredKeywords", self.ignoredKeywords.text()) self._build.setValue("text.addNoteHeadings", self.addNoteHead.isChecked())