diff --git a/xhtml2pdf/__init__.py b/xhtml2pdf/__init__.py index 97b35b65..728c6cc2 100644 --- a/xhtml2pdf/__init__.py +++ b/xhtml2pdf/__init__.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "0.2.3" +__version__ = "0.2.3-sbgrid" diff --git a/xhtml2pdf/xhtml2pdf_reportlab.py b/xhtml2pdf/xhtml2pdf_reportlab.py index 40ba02f6..401893f3 100644 --- a/xhtml2pdf/xhtml2pdf_reportlab.py +++ b/xhtml2pdf/xhtml2pdf_reportlab.py @@ -671,7 +671,7 @@ def _drawBorderLine(bstyle, width, color, x1, y1, x2, y2): # We need width and border style to be able to draw a border if width and getBorderStyle(bstyle): # If no color for border is given, the text color is used (like defined by W3C) - if color is None: + if color is None or color is False: #SBGrid Fix, unsure why the false makes it this far but this resolves the issue color = style.textColor # print "Border", bstyle, width, color if color is not None: