2860: Problem with det_ancestor report in PDF at page breaks - part 1

svn: r12393
This commit is contained in:
Benny Malengier 2009-03-29 09:07:35 +00:00
parent eb29011083
commit 82c9108b23

View File

@ -479,6 +479,9 @@ class GtkDocParagraph(GtkDocBaseElement):
# and divide the text, first create the second part # and divide the text, first create the second part
new_style = BaseDoc.ParagraphStyle(self._style) new_style = BaseDoc.ParagraphStyle(self._style)
new_style.set_top_margin(0) new_style.set_top_margin(0)
#we split a paragraph, text should begin in correct position: no indent
#as if the paragraph just continues from normal text
new_style.set_first_indent(0)
new_paragraph = GtkDocParagraph(new_style) new_paragraph = GtkDocParagraph(new_style)
new_paragraph.add_text(self._text.encode('utf-8')[index:]) new_paragraph.add_text(self._text.encode('utf-8')[index:])
# then update the first one # then update the first one