プロジェクト

全般

プロフィール

Vote #64740

未完了

trac lists aren't imported as such

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

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

0%

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

説明

1. a
 1. a
 1. a
1. a
1. a

Should be converted to:

# a
## a
## a
# a
# a

journals

Check Patch #2748 for an updated version of the importer which fixes that issue beside others.
--------------------------------------------------------------------------------
Ah cool.. here's my solution, it's a bit more strict but does essentially the same thing.

Add following to convert_wiki_text:

<pre>
# alpha/numeric lists
text = text.gsub(/(^[ ]+)(\d+|[a-zA-Z])\.[ ]/) { |s| '#' * $1.length + ' '}
# bullet lists
text = text.gsub(/(^[ ]+)\*[ ]/) { |s| '*' * $1.length + ' '}
</pre>

Test cases:
<pre>
puts convert_wiki_text(" 1. test")
puts convert_wiki_text(" 1. test")
puts convert_wiki_text(" * test")
puts convert_wiki_text(" * test")
puts convert_wiki_text(" a. test")
puts convert_wiki_text(" a. test")
</pre>

Output:
<pre>
# test
## test
* test
** test
# test
## test
</pre>
--------------------------------------------------------------------------------
Any news on this?
Is anyone able to reproduce this with the current trunk?
--------------------------------------------------------------------------------

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

  • カテゴリImporters_15 にセット

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

いいね!0
いいね!0