* src/docgen/OpenOfficeDoc.py: Header paragraphs have the keep-with-next

property set


svn: r1911
This commit is contained in:
Don Allingham 2003-07-21 03:28:14 +00:00
parent e4d0dc71b4
commit 9307d1e83e

View File

@ -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: