diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index 286058341..09b8baff2 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -413,6 +413,8 @@ class OpenOfficeDoc(TextDoc.TextDoc): if style.get_padding() != 0.0: self.f.write('fo:padding="%.3fcm" ' % style.get_padding()) + if style.get_header_level() > 0: + self.f.write('fo:keep-with-next="true" ') align = style.get_alignment() if align == TextDoc.PARA_ALIGN_LEFT: