Skip to content

Commit

Permalink
fixed _pisaAddFrame, ValueError: too many values to unpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
daleobrien committed May 28, 2012
1 parent b960014 commit 70f573b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xhtml2pdf/context.py
Expand Up @@ -278,7 +278,7 @@ def atPage(self, name, pseudopage, declarations):
if not frameList:
# print 999
log.warn(c.warning("missing explicit frame definition for content or just static frames"))
fname, static, border, x, y, w, h = self._pisaAddFrame(name, data, first=True, border=pageBorder, size=c.pageSize)
fname, static, border, x, y, w, h, data = self._pisaAddFrame(name, data, first=True, border=pageBorder, size=c.pageSize)
x, y, w, h = getCoords(x, y, w, h, c.pageSize)
if w <= 0 or h <= 0:
log.warn(c.warning("Negative width or height of frame. Check @page definitions."))
Expand Down

0 comments on commit 70f573b

Please sign in to comment.