Re: Trying to get rid of a space.
Danny Yoo via Tutor <[email protected]> Sat, 13 Jun 2026 18:36:41 -0000
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <[email protected]> |
Hey Patsy,
I'm curious about what the problem is and what your solution means. Let me see... To clarify, this looks like use of the ReportLab PDF library:
https://docs.reportlab.com/reportlab/userguide/ch1_intro/
It sounds like you were working with tables. There's some good authoritative documentation about them here:
https://docs.reportlab.com/reportlab/userguide/ch7_tables/
Let me see what you had before for one of the styles:
style = [('LINEAFTER', (1, 0), (1, 2), 0.25, colors.black)]
and what you had afterwards that fixed the issue:
style = [('LINEAFTER', (1, 0), (1, 5), 0.25, colors.black)]
What do those arguments mean? Let me check the line commands. https://docs.reportlab.com/reportlab/userguide/ch7_tables/#tablestyle-line-commands
... Okay, coordinates are in (column, row), rather than what I was initially expecting as (row, column). Gotcha.
Okay, so you initially had the line go after the second column of data, but it spanned across from rows 0 through rows 2, leaving a gap for the other rows in your data. And you wanted to extend that line straight down to cover the rest of the rows, so it looks like you stretched it out to row 5.
Am I explaining what you discovered correctly? Just curious. If you wanted it to go down throughout all your data, I believe you can also use "negative indices" which start from the back. So I'd expect something like:
style = [('LINEAFTER', (1, 0), (1, -1), 0.25, colors.black)]
to also do the trick.
_______________________________________________
Tutor maillist - To unsubscribe send an email to [email protected]
To unsubscribe or change subscription options:
%(web_page_url)slistinfo/%(_internal_name)s