From 608e5cf866445d0bc72c669a23e6e25920cd87ca Mon Sep 17 00:00:00 2001 From: "Donald A. Peterson" Date: Tue, 19 Feb 2002 21:32:19 +0000 Subject: [PATCH] Catches longlist cellstyle for p vs. l format svn: r784 --- gramps/src/docgen/LaTeXDoc.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gramps/src/docgen/LaTeXDoc.py b/gramps/src/docgen/LaTeXDoc.py index b00969c20..07304c3ef 100644 --- a/gramps/src/docgen/LaTeXDoc.py +++ b/gramps/src/docgen/LaTeXDoc.py @@ -282,8 +282,13 @@ class LaTeXDoc(TextDoc): self.rborder = self.cstyle.get_right_border() self.bborder = self.cstyle.get_bottom_border() self.tborder = self.cstyle.get_top_border() - - cellfmt = "l" + self.llist = self.cstyle.get_longlist() + + if self.llist == 1: + cellfmt = "p{\linewidth-3cm}" + else: + cellfmt = "l" + # Account for vertical rules if self.lborder == 1: cellfmt = '|' + cellfmt @@ -324,6 +329,8 @@ class LaTeXDoc(TextDoc): def write_text(self,text): """Write the text to the file""" + if text == '\n': + text = '\\newline\n' self.f.write(text)