プロジェクト

全般

プロフィール

Vote #63998

完了

Italics in wiki headers show-up wrong in the toc

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2008/10/16
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
20
issue_org_id:
2038
author_id:
2342
assigned_to_id:
0
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When using italics in a wiki header they will show up with the underscore characters printed in the toc.

h3. Steps to reproduce:

Produce a new wiki page as such:

h1. My New Page

{{toc}}

h2. _Subheader_

h3. Expected result:

Subheader should be shown as "Subheader" in the toc.

h3. Actual result:

The underscores are printed in the toc and Subheader is shown as "Subheader"


journals

Oops, "who" in the defect subject should be "show"! ;)
--------------------------------------------------------------------------------
Corrected subject, wrapped wiki-source in @pre@-tags and added headings to make the issue more readable...
--------------------------------------------------------------------------------
Reproduced on devel branch. Seems similar to #5445 resolved yesterday, I think this is a larger issue, all inline styles are not displayed correctly in TOC...
--------------------------------------------------------------------------------
Testing this shows fixed by #5445. Marking as closed.
--------------------------------------------------------------------------------
Scratch that, I'm stupid
--------------------------------------------------------------------------------
Attached a *temporary* patch to fix it, but I don't think it should be committed for the moment.

As discussed on the IRC channel, maybe @{{toc}}@ should be completely rewritten since it's similar to a macro in some way, and in some way not (especially for #3707). Plus, this patch does not handle the case of "redmine links" in titles (fixing it the same way would provoke "stack level too deep" errors..).
--------------------------------------------------------------------------------
Fixed in r4376.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン1.1.0_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0