pombreda / xhtml2pdf

Automatically exported from code.google.com/p/xhtml2pdf
GNU General Public License v2.0
0 stars 0 forks source link

"Too many values to unpack" error on generating TOC #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add <pdf:toc /> to html
2. run xhtml2pdf

What is the expected output? What do you see instead?
The program crashes with "too many values to unpack"

What version of the product are you using? On what operating system?
3.0.29 on Mac OS X 10.5, Python 2.5

Please provide any additional information below.

In my opinion the problem is, that you have added a "key"-value to the 
toc-entries, which is not 
refelcted in pisa_reportlab.py in line 696. The attached diff changes made the 
TOC work for me.

Original issue reported on code.google.com by biebl.mi...@gmail.com on 15 Mar 2009 at 8:48

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed the problem here too. Please include it in next release, thanks!

Original comment by airadier on 18 Mar 2009 at 3:18

GoogleCodeExporter commented 9 years ago
Which version of reportlab are you using? Do you have an example code? Anyways 
I added code to avoid the 
problem in the future.

Original comment by dirk.holtwick on 26 Mar 2009 at 6:30

GoogleCodeExporter commented 9 years ago
Which version of reportlab are you using? Do you have an example code? Anyways 
I added code to avoid the 
problem in the future.

Original comment by dirk.holtwick on 26 Mar 2009 at 6:31