From 70d431846a438112265956c23969f043f8df7da3 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Fri, 2 Dec 2011 17:31:15 -0600 Subject: [PATCH] http://code.google.com/p/web2py/issues/detail?id=551, thanks Tyrone --- VERSION | 2 +- gluon/contrib/pyfpdf/html.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a28755db..fe1fdcee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-12-02 16:16:28) dev +Version 1.99.3 (2011-12-02 17:31:14) dev diff --git a/gluon/contrib/pyfpdf/html.py b/gluon/contrib/pyfpdf/html.py index 19cd98c7..71e5ef57 100644 --- a/gluon/contrib/pyfpdf/html.py +++ b/gluon/contrib/pyfpdf/html.py @@ -83,7 +83,7 @@ class HTML2FPDF(HTMLParser): else: self.set_style('B',True) border = border or 'B' - align = 'C' + align = self.td.get('align', 'C')[0].upper() bgcolor = hex2dec(self.td.get('bgcolor', self.tr.get('bgcolor', ''))) # parsing table header/footer (drawn later): if self.thead is not None: