[reportlab-users] Position Paragraph or how to get current position
Robin Becker
robin at reportlab.com
Mon Oct 21 12:34:20 EDT 2013
On 21/10/2013 14:59, Mike Driscoll wrote:
> Hi Andy,
>
>
..........
>
>
> I think I got the padding removed using the table's style options,
> specifically BOTTOMPADDING and TOPPADDING. But I'm still not sure how I can
> control the indent of the following flowables. I really want to move the
> Paragraph object that follows the table to the left about half an inch.
>
> - Mike
........
Mike,
our paragraphs try to use all the horizontal space available to them. That means
the container doesn't control where the paragraph aligns itself. That's a
problem if you want ragged right and aligned right as I don't think we can do that.
For traditional left/right center etc (and ignoring any cell padding issues) you
need to set the paragraph's style.alignment to one of
TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY (found in from reportlab.lib.enums)
to get the desired behaviour. The default is TA_LEFT.
--
Robin Becker
More information about the reportlab-users
mailing list