プロジェクト

全般

プロフィール

Vote #69458

完了

Headers (h1, etc.) containing backslash followed by a digit are not displayed correctly

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2011/03/12
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
34
issue_org_id:
7846
author_id:
6508
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
31
ステータス-->[Closed]

説明

Wiki page titles containing backslashes followed by a digit are not rendered properly because of the way @String.gsub@ handles specifically this sequence with Ruby 1.8 (1.9 changed this behavior).

From Ruby @String.gsub@ doc :

However, the sequences \1, \2, and so on may be used to interpolate successive groups in the match.

I made a patch.


journals

Would be nice to add a test to @TextileFormatterTest@.
--------------------------------------------------------------------------------
I'll do so.
--------------------------------------------------------------------------------
Here's the patch with test.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch applied in r5100, thanks. Just fixed the space before parenthesis in @#assert_html_output@.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン1.1.3_34 にセット

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

いいね!0
いいね!0