From: Martín Marrese Date: Mon, 1 Mar 2004 17:40:15 +0000 (+0000) Subject: Habia problemas si se agregaban parrafos vacios (sin espacios). Ahora se pueden pasar... X-Git-Tag: svn_import~98 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/59ef1bb1bc43dce4e8add06eac8e56ea9a043661?ds=sidebyside Habia problemas si se agregaban parrafos vacios (sin espacios). Ahora se pueden pasar estos parrafos. --- diff --git a/lib/MECON/PDF/Texto.php b/lib/MECON/PDF/Texto.php index 5aed440..5784948 100644 --- a/lib/MECON/PDF/Texto.php +++ b/lib/MECON/PDF/Texto.php @@ -181,7 +181,12 @@ class MECON_PDF_Texto extends MECON_PDF_Contenido { //sean parrafos. $c = split ("\n", $c); foreach ($c as $tmp) { - $this->_parrafos[] = $tmp; + if ($tmp) { + $this->_parrafos[] = $tmp; + } + else { + $this->_parrafos[] = ' '; + } } } }