Catches longlist cellstyle for p vs. l format

svn: r784
This commit is contained in:
Donald A. Peterson 2002-02-19 21:32:19 +00:00
parent 84b85cca1d
commit 608e5cf866

View File

@ -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()
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)