From 82c9108b2320541c187c9fabc0c14c39f8e52c31 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 29 Mar 2009 09:07:35 +0000 Subject: [PATCH] 2860: Problem with det_ancestor report in PDF at page breaks - part 1 svn: r12393 --- src/plugins/lib/libcairodoc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/lib/libcairodoc.py b/src/plugins/lib/libcairodoc.py index 19e8db930..c14397137 100644 --- a/src/plugins/lib/libcairodoc.py +++ b/src/plugins/lib/libcairodoc.py @@ -479,6 +479,9 @@ class GtkDocParagraph(GtkDocBaseElement): # and divide the text, first create the second part new_style = BaseDoc.ParagraphStyle(self._style) 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.add_text(self._text.encode('utf-8')[index:]) # then update the first one