From de2a2c2e67ea12e50be7686494f3623b4dd91b23 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 18 May 2009 14:42:06 +0000 Subject: [PATCH] 2860: Problem with det_ancestor report in PDF at page breaks\n no more STRANGE output svn: r12536 --- src/plugins/docgen/CairoDoc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/docgen/CairoDoc.py b/src/plugins/docgen/CairoDoc.py index 39288cbf8..2d7947ae8 100644 --- a/src/plugins/docgen/CairoDoc.py +++ b/src/plugins/docgen/CairoDoc.py @@ -500,6 +500,10 @@ class GtkDocParagraph(GtkDocBaseElement): startheight = linerange[0] endheight = linerange[1] splitline = -1 + if lineiter.at_last_line(): + #only one line of text that does not fit + return (None, self), 0 + while not lineiter.at_last_line(): #go to next line, see if all fits, if not split lineiter.next_line()