Add preserve tabs setting to HTML builds

This commit is contained in:
Veronica Berglyd Olsen
2024-03-01 22:09:50 +01:00
parent fa8a954bc0
commit bb2c2bb7fe
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -82,6 +82,7 @@ SETTINGS_TEMPLATE = {
"odt.pageHeader": (str, nwHeadFmt.ODT_AUTO),
"odt.pageCountOffset": (int, 0),
"html.addStyles": (bool, True),
"html.preserveTabs": (bool, False),
}
SETTINGS_LABELS = {
@@ -132,6 +133,7 @@ SETTINGS_LABELS = {
"html": QT_TRANSLATE_NOOP("Builds", "HTML (.html)"),
"html.addStyles": QT_TRANSLATE_NOOP("Builds", "Add CSS Styles"),
"html.preserveTabs": QT_TRANSLATE_NOOP("Builds", "Preserve Tab Characters"),
}
+1 -1
View File
@@ -161,7 +161,7 @@ class NWBuildDocument:
else:
yield i, False
if self._build.getBool("format.replaceTabs"):
if not self._build.getBool("html.preserveTabs"):
makeObj.replaceTabs()
self._error = None