Comment 0 for bug 980689

Revision history for this message
freeExec (freeexec) wrote :

The specification reportlab for the tag "paraStyle" is an attribute of "parent." But in your code, it is not used.
For some reason, always use the default style of Normal, although you can use is a certain style to it.

Now:
self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.default_style["Normal"], **self.styles[sname])

But should (if present parent):
self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.styles_obj[parentname], **self.styles[sname])