*セル数の違うテーブルを並べると、前のテーブルが閉じない
*セル数の違うテーブルを並べると、前のテーブルが閉じない [#cf3403a0]

-ページ: BugTrack
-投稿者: [[ぱんだ]]
-優先順位: 普通
-状態: 完了
-カテゴリー: 本体バグ
-投稿日: 2002-08-07 (水) 17:47:32
-バージョン: 

**メッセージ
**メッセージ [#u0dafc41]
毎度どうも。訳あって((暇なんです XD ))、convert_htmlを穴があくほど眺めています。

たとえば
 |1|
 |1|2|
と書くと
 <div class="ie5">
  <table class="style_table" cellspacing="1" border="0">
   <tr>
    <td class="style_td">1</td>
   </tr>
 <!--ここに </table></div>が必要-->
 <div class="ie5">
  <table class="style_table" cellspacing="1" border="0">
   <tr>
    <td class="style_td">1</td>
    <td class="style_td">2</td>
   </tr>
  </table>
 </div>
となってしまいます。

問題の場所
 --- html.php.orig	2002-08-07 16:53:49.000000000 +0900
 +++ html.php	2002-08-07 17:42:37.000000000 +0900
 @@ -106,10 +106,12 @@
  	{
  		if(!preg_match("/^\/\/(.*)/",$line,$comment_out) && $table != 0)
  		{
 -			if(!preg_match("/^\|(.+)\|$/",$line,$out))
 -				array_push($result, "</table></div>");
 -			if(!$out[1] || $table != count(explode("|",$out[1])))
 +			if(!preg_match("/^\|(.+)\|$/",$line,$out) or
 +				$table != count(explode("|",$out[1])))
 +			{
  				$table = 0;
 +				array_push($result, "</table></div>");
 +			}
  		}
  
  		$comment_out = $comment_out[1];

サンプル
|1|
|1|2|

----

-diffファイルで添付していただけると大変助かります。 -- [[ゆう]] SIZE(10){2002-08-07 (水) 17:53:31}
-わかりました。今度からそうします。 -- [[ぱんだ]] SIZE(10){2002-08-07 (水) 17:56:26}
-このdiffは他の修正とかも含んでます? -- [[ゆう]] SIZE(10){2002-08-07 (水) 18:00:18}
-ありゃ。すみません。添付ファイルに、今回のパッチに関係ない差分が含まれていました。 -- [[ぱんだ]] SIZE(10){2002-08-07 (水) 18:02:58}
-添付ファイルを差し替えました。 -- [[ぱんだ]] SIZE(10){2002-08-07 (水) 18:05:00}
-ありがとうございました。cvsにとりこみました。 -- [[ゆう]] SIZE(10){2002-08-07 (水) 21:11:41}
#comment
//#comment

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u12. HTML convert time: 0.039 sec.

OSDN