add paragraph style reportlab
<p>I'm trying to set a paragraph style to report lab, I defined a style here:</p>

<pre><code>def stylesheet():
    styles= {
        'default': ParagraphStyle(
            'default',
            fontName='Arial',
            fontSize=16,
            leading=12,
            leftIndent=0,
            rightIndent=0,
            firstLineIndent=0,
            alignment=TA_LEFT,
            spaceBefore=0,
            spaceAfter=0,
            bulletFontName='Arial',
            bulletFontSize=10,
            bulletIndent=0,
            textColor= black,
            backColor=None,
            wordWrap=None,
            borderWidth= 0,
            borderPadding= 0,
            borderColor= None,
            borderRadius= None,
            allowWidows= 1,
            allowOrphans= 0,
            textTransform=None,  # 'uppercase' | 'lowercase' | None
            endDots=None,         
            splitLongWords=1,
        ),
    }
</code></pre>

<p>Then I print it like that </p>

<pre><code>   pdf = PDFDocument(carte)
    pdf.init_report()
    pdf.p(str(row))
    pdf.generate()
</code></pre>

<p>Which gives an unformatted output</p>

<p>When I try </p>

<pre><code>pdf = PDFDocument(carte)
pdf.init_report()
pdf.p(str(row), default)
pdf.generate()
</code></pre>

<p>To apply the default style to my text, it gives me 'NameError: name 'styles' is not defined'</p>

<p>Any clue?</p>