From ce2f309281230fc5955875dff7e90c8a6f3517c7 Mon Sep 17 00:00:00 2001 From: Nicola Asuni Date: Sun, 16 Dec 2012 12:23:34 +0000 Subject: [PATCH] 5.9.202 (2012-12-16) - Vertical space problem after table was fixed. --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- composer.json | 2 +- tcpdf.php | 14 +++++++++----- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index c475e9e..9dd1e60 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.202 (2012-12-16) + - Vertical space problem after table was fixed. + 5.9.201 (2012-12-10) - First 256 chars are now always included on font subset to overcome a problem reported on the forum. diff --git a/README.TXT b/README.TXT index 7d24a83..979cf53 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.201 -Release date: 2012-12-10 +Version: 5.9.202 +Release date: 2012-12-16 Author: Nicola Asuni Copyright (c) 2002-2012: diff --git a/composer.json b/composer.json index 376ff65..c085daf 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "5.9.201", + "version": "5.9.202", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents.", diff --git a/tcpdf.php b/tcpdf.php index e6ef1ab..a6d99cd 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.201 + * @version 5.9.202 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -151,7 +151,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 5.9.201 + * @version 5.9.202 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -162,7 +162,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.201'; + private $tcpdf_version = '5.9.202'; // Protected properties @@ -23856,6 +23856,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: $hbz = $this->FontSize * $this->cell_height_ratio; } } + if (isset($dom[($key - 1)]) AND ($dom[($key - 1)]['value'] == 'table')) { + // fix vertical space after table + $hbz = 0; + } } // Opening tag switch($tag['value']) {