[reportlab-users] How to add spaces in a paragraph

Robin Becker robin at reportlab.com
Wed Oct 5 06:35:03 EDT 2005

Claudio Battaglino wrote:
> Hi,
> it seems that the Paragraph tag collapses the spaces between two strings.
> For example in this case:
> P_address = Paragraph("<para> A         B </para>", styles['Normal'])
> between A and B it puts only a space.
> How can I force to print blank spaces and tabs in a paragraph?
> thank you very much
> claudio

use the XPreformatted class instead of the Paragraph class then the formatting 
is up to you.
Robin Becker

More information about the reportlab-users mailing list