From 6d2dcd0034d3f3d35b569c72d12d792fb200fa88 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 21 Jul 2003 03:28:14 +0000 Subject: [PATCH] * src/docgen/OpenOfficeDoc.py: Header paragraphs have the keep-with-next property set svn: r1911 --- src/docgen/OpenOfficeDoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/docgen/OpenOfficeDoc.py b/src/docgen/OpenOfficeDoc.py index 286058341..09b8baff2 100644 --- a/src/docgen/OpenOfficeDoc.py +++ b/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: