My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 87: Showing table header row in every page
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Nov 2008
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by whosaysni, Nov 10, 2008
I recently started using rst2pdf and I have a bit trouble
with publishing table which splits over multiple pages:
rst2pdf has no support for displaying table header row
in every page.

Controlling repetitive display of table header is very easy ---
just passing reportlab.platypus.Table with repeatRows=0/1 in
rst2pdf.flowables.DelayedTable.wrap()::

  class DelayedTable(Flowable):                                                                                                                                               
       ...
      def __init__(self, data, colwidths, style, repeatRows=0):                                                                                                                            
          ...
      def wrap(self,w,h):                                                                                                                                                     
          ...
          self.t=Table(self.data,colWidths=colwidths,style=TableStyle(self.style),
                       repeatRows=self.repeatRow

Here I attached a patch which implements above and passes repeatRow via --repeat-table-rows 
commandline flag option.
 
Comment 1 by roberto.alsina, Nov 11, 2008
I don't see the patch.
Comment 2 by whosaysni, Nov 11, 2008
Sorry, here is the patch...
repeat-table-rows.diff
4.6 KB   Download
Comment 3 by roberto.alsina, Nov 12, 2008
Committed in r434
Comment 4 by roberto.alsina, Nov 12, 2008
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code