*#contents利用時ユーザ定義が表示される [#v40038b3] -ページ: BugTrack -投稿者: [[Simon]] -優先順位: 普通 -状態: 完了 -カテゴリー: 本体バグ -投稿日: 2003-09-02 (火) 01:56:55 -バージョン: 1.3.5 **メッセージ [#n8d0842e] 1.3.4では起きなかった現象ですが、見出し記号(*)の後ろに半角空白があると、見出しにユーザ定義(COLOR(red){}など)を利用していた場合、#contentsを表示させるとユーザ定義が#contents内に見えてしまいます。 詳しくは、[[official:質問箱/254]]、[[test1.3:テストページ]]を参照。 ---- -[[BugTrack/283]]の修正([[cvs1.3:html.php]] r1.45.2.5)でバグを作りこんだようです。以下のパッチを試してみてください。 -- [[ぱんだ]] &new{2003-09-02 (火) 16:33:00}; diff -u -r1.45.2.6 html.php --- html.php 3 Jun 2003 11:57:34 -0000 1.45.2.6 +++ html.php 2 Sep 2003 07:31:44 -0000 @@ -166,7 +166,7 @@ $level = strlen($out[1]) + 1; array_push($result, "<h$level><a name=\"content_{$content_id_local}_$content_count\"></a>$str $top_link</h$level>"); - $contents_str = strip_htmltag(join('',inline2(array(inline($out[2],TRUE))))); + $contents_str = strip_htmltag(join('',inline2(array(inline(ltrim($out[2]),TRUE))))); $arycontents[] = str_repeat("-",$level-1)."<a href=\"#content_{$content_id_local}_$content_count\">$contents_str</a>\n"; $content_count++; } -patchを当てたら直りました。ありがとうございました。 -- [[Simon]] &new{2003-09-02 (火) 17:29:55}; -cvsに投入しました。[[cvs:html.php]](v1.3:r1.45.2.7) -- [[ぱんだ]] &new{2003-09-03 (水) 10:07:35}; #comment //#comment