From c7d5138e5c23e52860044f360cc6522bad23d8d2 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 4 Nov 2011 09:54:15 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E8=A1=A8=E6=A0=BC=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/MetadataPDF.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/models/MetadataPDF.php b/application/models/MetadataPDF.php index aaf955a5..66af1f49 100644 --- a/application/models/MetadataPDF.php +++ b/application/models/MetadataPDF.php @@ -163,17 +163,17 @@ class MetadataPDF extends PDF_Unicode function DrawTable($text) { - $table=explode("{|\n",$text); + $table=explode("{|",$text); $this->write(5,$table[0]); - $table1=explode("|}\n",$table[1]); - $table=explode("|-\n",$table1[0]); + $table1=explode("|}",$table[1]); + $table=explode("|-",$table1[0]); $header=explode("!",str_replace(array("\r\n", "\n", "\r"),'',$table[0])); $data=array(); foreach($table as $line=>$tr) { if ($line>0 && !empty($tr)) { - $tr=substr($tr,1); + $tr=substr(trim($tr),1); $data[]=explode("||",$tr); } }