Re: Is there a way to prevent table split between particular rows?
Robin Becker <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CAOBYczoX7ZuEM3h98MN8zG25Zt5L2PSkGUObZ0XXC6yZDQRRXQ@mail.gmail.com> |
Yes that would do it. Probably better than the existing hack mechanism. Chances of ever splitting by columns recede. On 19 February 2016 at 23:19, Lele Gaifax <[email protected]> wrote: > Robin Becker <[email protected]> writes: > >> The docs need to be extended mea cupla :( > > Don't worry, I know what it means to keep that in sync! > >> The rowSplitRange is intended to prevent splitting near the top of the >> table or to near to the end. There is only one allowed range = lo,hi >> and splitting is only allowed if the lo<=splitpoint <=hi. I suppose >> this could be extended to a more general list of allowed split ranges, >> but that's not available right now. >> >> If that's required I would have to do some extra thinking. > > Well, the project I'm developing is not that important: should the customer > raise her eyebrows, I will try to rearrange the printout using multiple > tables, one for each group, wrapping each table within a KeepTogether element. > > Anyway, for my need, it would maybe be more natural to express the constraint > within the TableStyle, something like > > ... > ('KEEPTOGETHER', (0, 2), (-1, 3)), > ... > > to mean that preferably a split should not happen between row 2 and 3. That > could cover even the split-by-column case. > > What do you think? > > Thank you, > ciao, lele. > -- > nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri > real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. > [email protected] | -- Fortunato Depero, 1929. > > _______________________________________________ > reportlab-users mailing list > [email protected] > https://pairlist2.pair.net/mailman/listinfo/reportlab-users -- Robin Becker _______________________________________________ reportlab-users mailing list [email protected] https://pairlist2.pair.net/mailman/listinfo/reportlab-users