Catches longlist cellstyle for p vs. l format
svn: r784
This commit is contained in:
parent
84b85cca1d
commit
608e5cf866
@ -282,8 +282,13 @@ class LaTeXDoc(TextDoc):
|
|||||||
self.rborder = self.cstyle.get_right_border()
|
self.rborder = self.cstyle.get_right_border()
|
||||||
self.bborder = self.cstyle.get_bottom_border()
|
self.bborder = self.cstyle.get_bottom_border()
|
||||||
self.tborder = self.cstyle.get_top_border()
|
self.tborder = self.cstyle.get_top_border()
|
||||||
|
self.llist = self.cstyle.get_longlist()
|
||||||
cellfmt = "l"
|
|
||||||
|
if self.llist == 1:
|
||||||
|
cellfmt = "p{\linewidth-3cm}"
|
||||||
|
else:
|
||||||
|
cellfmt = "l"
|
||||||
|
|
||||||
# Account for vertical rules
|
# Account for vertical rules
|
||||||
if self.lborder == 1:
|
if self.lborder == 1:
|
||||||
cellfmt = '|' + cellfmt
|
cellfmt = '|' + cellfmt
|
||||||
@ -324,6 +329,8 @@ class LaTeXDoc(TextDoc):
|
|||||||
|
|
||||||
def write_text(self,text):
|
def write_text(self,text):
|
||||||
"""Write the text to the file"""
|
"""Write the text to the file"""
|
||||||
|
if text == '\n':
|
||||||
|
text = '\\newline\n'
|
||||||
self.f.write(text)
|
self.f.write(text)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user