From 7a111bb1730565e27f69c55621f866ec7710035d Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:24:10 +0100 Subject: [PATCH] Update default margins --- novelwriter/constants.py | 18 +++++++++--------- novelwriter/formats/toodt.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/novelwriter/constants.py b/novelwriter/constants.py index bd5efac5..2c54ad25 100644 --- a/novelwriter/constants.py +++ b/novelwriter/constants.py @@ -118,15 +118,15 @@ class nwStyles: "SP": QT_TRANSLATE_NOOP("Constant", "Scene Separator"), } T_MARGIN = { - "H0": (1.42, 0.50), # Title margins - "H1": (1.42, 0.50), # Heading 1 margins - "H2": (1.67, 0.50), # Heading 2 margins - "H3": (1.17, 0.50), # Heading 3 margins - "H4": (1.17, 0.50), # Heading 4 margins - "TT": (0.00, 0.58), # Text margins - "SP": (1.17, 1.17), # Separator margins - "MT": (0.00, 0.58), # Meta margins - "FT": (1.42, 0.47), # Footnote margins + "H0": (1.50, 0.60), # Title margins (top, bottom) + "H1": (1.50, 0.60), # Heading 1 margins (top, bottom) + "H2": (1.50, 0.60), # Heading 2 margins (top, bottom) + "H3": (1.20, 0.60), # Heading 3 margins (top, bottom) + "H4": (1.20, 0.60), # Heading 4 margins (top, bottom) + "TT": (0.00, 0.60), # Text margins (top, bottom) + "SP": (1.20, 1.20), # Separator margins (top, bottom) + "MT": (0.00, 0.60), # Meta margins (top, bottom) + "FT": (1.20, 0.40), # Footnote margins (left, bottom) } diff --git a/novelwriter/formats/toodt.py b/novelwriter/formats/toodt.py index 750e0579..37ba5943 100644 --- a/novelwriter/formats/toodt.py +++ b/novelwriter/formats/toodt.py @@ -874,7 +874,7 @@ class ToOdt(Tokenizer): style.setNextStyleName(S_TEXT) style.setOutlineLevel("1") style.setClass("text") - style.setMarginTop(self._emToCm(self._marginTitle[1])) + style.setMarginTop(self._emToCm(self._marginHead1[0])) style.setMarginBottom(self._emToCm(self._marginHead1[1])) style.setFontName(self._fontFamily) style.setFontFamily(self._fontFamily)