プロジェクト

全般

プロフィール

Vote #70202

未完了

Migration from trac loses lines containing {{{ or }}}

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
-
開始日:
2011/06/23
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
0
issue_org_id:
8674
author_id:
35699
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
21
ステータス-->[New]

説明

In "lib/tasks/migrate_from_trac.rake l319 ff.":http://www.redmine.org/projects/redmine/repository/entry/trunk/lib/tasks/migrate_from_trac.rake#L319, the trac markup for preformatted text @{{{@ and @}}}@ gets slightly mishandled.

The code presumes that those curly braces will always occur on their own line, which they should but need not, and replaces whole lines matching @/{{{/@ or @/}}}/@ with pre tags. Lines of text merely containing those codes are lost in transmogrification.

This affects import of wiki pages, issues and issue status, aka everything run through @convert_wiki_text(text)@.

I ran into the issue on a debian lenny packaged 1.0.1, but the code in trunk looks the same.

I have attached the little patch I used to resolve the issue for me. It's against 1.0.1 but should apply cleanly to trunk. Lines are preserved, and if curlies open and close on the same line, inline code @'s are used instead of pre tags.

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

  • カテゴリImporters_15 にセット

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

いいね!0
いいね!0