| Issue 95: | rst2pdf - indented table produces : AttributeError: 'list' object has no attribute 'leftIndent' | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
What steps will reproduce the problem?
If you have following rst - numbered list with indented table:
13. On MMS Settings window - fill data
===========================================
====================================================
MMS Server URL
http://mms.itelcel.com/servlets/mms
Use Specific Network Connection(GPRS Modem) <check it>
Network Connection pick "Modem: Standard
33600 bps Modem" from the list
Wap Gateway IP Address 148.233.151.240
Modem Used Standard 33600 bps Modem
GPRS APN mms.itelcel.com
Login name mmsgprs
Password mmsgprs2003
===========================================
====================================================
I get:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 1272, in main
compressed=options.compressed)
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 991, in createPdf
elements=self.gen_elements(doctree,0)
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 346, in gen_elements
node.elements=self.gather_elements(node,depth,style=style)
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 902, in gather_elements
r.extend(self.gen_elements(n,depth,style=style))
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 557, in gen_elements
node.elements=self.gather_elements(node,depth+1)
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 902, in gather_elements
r.extend(self.gen_elements(n,depth,style=style))
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 565, in gen_elements
node.elements=self.gather_elements(node,depth,style=style)
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 902, in gather_elements
r.extend(self.gen_elements(n,depth,style=style))
File
"R:\env-lib\PYTHON25\lib\site-packages\rst2pdf-svn\rst2pdf\createpdf.py",
line 643, in gen_elements
indentedStyle.leftIndent+=indentation
AttributeError: 'list' object has no attribute 'leftIndent'
details:
instead of
(Pdb) indentedStyle
<ParagraphStyle 'bodytext'>
this is:
(Pdb) indentedStyle
[('VALIGN', (0, 0), (-1, -1), 'TOP'), ('INNERGRID', (0, 0), (-1, -1), 0.25,
Colo
r(0,0,0)), ('BOX', (0, 0), (-1, -1), 0.25, Color(0,0,0)),
('ROWBACKGROUNDS', (0,
0), (-1, -1), [Color(1,1,1), '#E0E0E0'])]
Aplication fails.
version is svn-trunk - revision 453.
|
||||||||||||
,
Jan 22, 2009
(No comment was entered for this change.)
Status: Accepted
Labels: Component-Logic |
|||||||||||||
,
Jan 22, 2009
(No comment was entered for this change.)
Owner: roberto.alsina
|
|||||||||||||
,
Jan 22, 2009
Added workaround in r454, but it doesn't look right because I just don't know how to indent a table. |
|||||||||||||
,
Jan 23, 2009
Fixed in r457, now it's indented "correctly" by which I mean "not worse than a plain paragraph".
Status: Fixed
|
|||||||||||||
|
|
|||||||||||||