From: arino Date: Sat, 5 Jul 2003 01:40:49 +0000 (+0900) Subject: BugTrack/400の続き: #relatedの吐くタグを微調整 X-Git-Tag: r1_5_0_rc1~1508 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ef90d147c2e8c91fa85971d8e3496526b57304f4;p=pukiwiki%2Fpukiwiki.git BugTrack/400の続き: #relatedの吐くタグを微調整 --- diff --git a/convert_html.php b/convert_html.php index a749cd9..6a33c16 100644 --- a/convert_html.php +++ b/convert_html.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: convert_html.php,v 1.47 2003/06/30 00:38:21 arino Exp $ +// $Id: convert_html.php,v 1.48 2003/07/05 01:40:49 arino Exp $ // function convert_html($lines) { @@ -832,7 +832,7 @@ class Body extends Block // ´ØÏ¢¤¹¤ë¥Ú¡¼¥¸ //

¤Î¤È¤­¤Ï¹ÔƬ¤«¤é¡¢¤Î¤È¤­¤Ï¾¤ÎÍ×ÁǤλÒÍ×ÁǤȤ·¤Æ¸ºß $text = preg_replace('/

#related<\/del><\/p>/',make_related($vars['page'],'p'),$text); - $text = preg_replace('/#related<\/del>/',make_related($vars['page']),$text); + $text = preg_replace('/#related<\/del>/',make_related($vars['page'],'del'),$text); return $text; } function block(&$lines,$start,$end,$class) diff --git a/html.php b/html.php index 58d429e..6b1e95e 100644 --- a/html.php +++ b/html.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: html.php,v 1.87 2003/07/05 01:31:55 arino Exp $ +// $Id: html.php,v 1.88 2003/07/05 01:40:49 arino Exp $ // // ËÜʸ¤ò½ÐÎÏ @@ -240,11 +240,15 @@ function make_related($page,$tag='') "$s_page$passage"; } - if ($tag == 'p') + if ($tag == 'p') // ¹ÔƬ¤«¤é { $margin = $_ul_left_margin + $_ul_margin; $style = sprintf($_list_pad_str,1,$margin,$margin); - $retval = "\n

\n"; + $retval = "\n\n
  • ".join($rule_related_str,$_links)."
  • \n\n"; + } + else if ($tag) + { + $retval = join($rule_related_str,$_links); } else {