ReptarX / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

th always centered #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a table containing <th align='left'>
2.
3.

What is the expected output? 
left aligned text

What do you see instead?
centered text

What version of the product are you using? On what operating system?
1.7.

Please provide any additional information below.
In html.py change line 90

from:

            if not self.th:
                align = self.td.get('align', 'L')[0].upper()
                border = border and 'LR'
            else:
                self.set_style('B',True)
                border = border or 'B'
                align = 'C'

to:

            if not self.th:
                align = self.td.get('align', 'L')[0].upper()
                border = border and 'LR'
            else:
                self.set_style('B',True)
                border = border or 'B'
                align = self.td.get('align', 'C')[0].upper() 
------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Original issue reported on code.google.com by mweis...@gmail.com on 2 May 2013 at 9:13

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f7d7498aa7b2.

Original comment by reingart@gmail.com on 2 May 2013 at 4:58

GoogleCodeExporter commented 9 years ago
thanks, fixed in rf7d7498aa7b2, could you test it?

btw: if you want to send further patches, just attach the diff, so it is easy 
to review, and even I could give you commit access if everithing is ok ;-)

Original comment by reingart@gmail.com on 2 May 2013 at 5:04

GoogleCodeExporter commented 9 years ago
tested, works fine. thank you!

about a diff file: ok, I'll do it.

Original comment by mweis...@gmail.com on 2 May 2013 at 6:04