From be5ff66de20bf78b0500a83a71efcbf731801ce4 Mon Sep 17 00:00:00 2001 From: arino Date: Sun, 27 Jul 2003 22:37:42 +0900 Subject: [PATCH] =?utf8?q?BugTrack/428:=20BlockQuote=E3=81=AE=E3=82=AA?= =?utf8?q?=E3=83=96=E3=82=B8=E3=82=A7=E3=82=AF=E3=83=88=E3=83=9E=E3=83=BC?= =?utf8?q?=E3=82=B8=E5=87=A6=E7=90=86=E3=81=AE=E3=83=90=E3=82=B0=E3=82=92?= =?utf8?q?=E4=BF=AE=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- convert_html.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/convert_html.php b/convert_html.php index 6a33c16..16949d2 100644 --- a/convert_html.php +++ b/convert_html.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: convert_html.php,v 1.48 2003/07/05 01:40:49 arino Exp $ +// $Id: convert_html.php,v 1.49 2003/07/27 13:37:42 arino Exp $ // function convert_html($lines) { @@ -351,9 +351,10 @@ class BQuote extends Block } function &insert(&$obj) { - if (is_a($obj, 'BQuote') and $obj->level == $this->level) { + if (is_a($obj, 'BQuote') and $obj->level == $this->level + and count($obj->elements)) { if (is_a($this->last,'Paragraph') - and array_key_exists(0,$obj->elements[0]) + and array_key_exists(0,$obj->elements[0]->elements) and is_object($obj->elements[0]->elements[0])) { $this->last->insert($obj->elements[0]->elements[0]); } else { @@ -748,7 +749,7 @@ class Body extends Block } $line = preg_replace("/[\r\n]*$/",'',$line); - + print "
$line
"; // ¹ÔƬʸ»ú $head = substr($line,0,1); -- 2.11.0