Update default margins
This commit is contained in:
@@ -118,15 +118,15 @@ class nwStyles:
|
|||||||
"SP": QT_TRANSLATE_NOOP("Constant", "Scene Separator"),
|
"SP": QT_TRANSLATE_NOOP("Constant", "Scene Separator"),
|
||||||
}
|
}
|
||||||
T_MARGIN = {
|
T_MARGIN = {
|
||||||
"H0": (1.42, 0.50), # Title margins
|
"H0": (1.50, 0.60), # Title margins (top, bottom)
|
||||||
"H1": (1.42, 0.50), # Heading 1 margins
|
"H1": (1.50, 0.60), # Heading 1 margins (top, bottom)
|
||||||
"H2": (1.67, 0.50), # Heading 2 margins
|
"H2": (1.50, 0.60), # Heading 2 margins (top, bottom)
|
||||||
"H3": (1.17, 0.50), # Heading 3 margins
|
"H3": (1.20, 0.60), # Heading 3 margins (top, bottom)
|
||||||
"H4": (1.17, 0.50), # Heading 4 margins
|
"H4": (1.20, 0.60), # Heading 4 margins (top, bottom)
|
||||||
"TT": (0.00, 0.58), # Text margins
|
"TT": (0.00, 0.60), # Text margins (top, bottom)
|
||||||
"SP": (1.17, 1.17), # Separator margins
|
"SP": (1.20, 1.20), # Separator margins (top, bottom)
|
||||||
"MT": (0.00, 0.58), # Meta margins
|
"MT": (0.00, 0.60), # Meta margins (top, bottom)
|
||||||
"FT": (1.42, 0.47), # Footnote margins
|
"FT": (1.20, 0.40), # Footnote margins (left, bottom)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -874,7 +874,7 @@ class ToOdt(Tokenizer):
|
|||||||
style.setNextStyleName(S_TEXT)
|
style.setNextStyleName(S_TEXT)
|
||||||
style.setOutlineLevel("1")
|
style.setOutlineLevel("1")
|
||||||
style.setClass("text")
|
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.setMarginBottom(self._emToCm(self._marginHead1[1]))
|
||||||
style.setFontName(self._fontFamily)
|
style.setFontName(self._fontFamily)
|
||||||
style.setFontFamily(self._fontFamily)
|
style.setFontFamily(self._fontFamily)
|
||||||
|
|||||||
Reference in New Issue
Block a user