Reportlab

At work today I needed to force a new line break in a PDF that I was generating using Reportlab at work today. I tried just adding a newIine using the standard \n, like you would in python, but it seems that the Paragraph class in reportlab swallows the newline character.

I found that just entering a standard html break tag worked though. Something like this:

header_row.append('MSRP <br />($USD)')

In this case the output is

MSRP
($USD)
comments powered by Disqus